@mui/icons-material APIs
- Close
- Add
- Delete
- ExpandMore
- Settings
- Check
- Update
- GitHub
- MoreVert
- HelpOutline
- ChevronRight
- ExpandLess
- Menu
- FileCopy
- CheckBox
- CheckBoxOutlineBlank
- ArrowBack
- DeleteForever
- Visibility
- VisibilityOff
- Save
- Person
- Edit
- People
- ChevronLeft
- PlayArrow
- Home
- ExitToApp
- MoreHoriz
- WbSunny
- Download
- Upload
- Search
- HighlightOffOutlined
- ContentCopy
- Calculate
- ShoppingCart
- AccountBalance
- BarChart
- Paid
- Clear
- Cancel
- ArrowDownward
- ArrowUpward
- PhotoCamera
- Folder
- InfoOutlined
- Code
- KeyboardArrowDown
- Lock
- LockOpen
- Replay
- Favorite
- Build
- Refresh
- AssignmentInd
- Pets
- Public
- Group
- Brush
- KeyboardTab
- Phone
- HelpOutlineOutlined
- NetworkWifi
- CompareArrows
- AdminPanelSettings
- BugReport
- Logout
- Message
- AddCircle
- LockOutlined
- HomeOutlined
- BarChartOutlined
- MusicNote
- MusicNoteOutlined
- Album
- AlbumOutlined
- PersonOutlined
- SettingsOutlined
- Share
- ShareOutlined
- FastRewind
- Help
- Loop
- VolumeDown
- VolumeUp
- PauseCircle
- PlayCircle
- VolumeOff
- ChatBubbleOutline
- LockRounded
- WifiOffRounded
- VideocamOutlined
- AddRounded
- MoreVertRounded
- SyncProblem
- VideoCallOutlined
- GetAppRounded
- SaveAlt
- ErrorRounded
- InsertDriveFileRounded
- CheckCircleOutline
- CloudOff
- ClearAll
- CloseOutlined
- Link
- AttachmentOutlined
- CodeOutlined
- MailOutlineRounded
- Brightness7Rounded
- MenuRounded
- NightsStayRounded
- ArrowForward
- BrushRounded
- VisibilityRounded
- FileCopyRounded
- FavoriteRounded
- DesktopMacRounded
- PhoneAndroidRounded
- TabletMac
- ThumbUpOutlined
- ThumbDownOutlined
- AssistantPhotoOutlined
- Publish
- Create
- WbCloudy
- Computer
- KeyboardArrowUp
- BusinessCenter
- FavoriteBorder
- Groups
- Shuffle
- Difference
- SwapHoriz
- Info
- KeyboardDoubleArrowDown
- KeyboardDoubleArrowUp
- PersonAdd
- Checkroom
- FactCheck
- ArrowRightAlt
- Scanner
- Brightness4
- Brightness7
- Translate
- Backpack
- SettingsBrightness
- Equalizer
- Handyman
- SentimentVerySatisfied
- SentimentDissatisfied
- SentimentSatisfied
- AccessTime
- Remove
- ArrowDropDown
- ArrowRight
- Undo
- Redo
- CreateNewFolder
- Description
- Outbox
- Inbox
- DriveFileRenameOutline
- ContentPaste
- Block
- Star
- StarBorder
- Security
- Today
- Event
- Login
- Sick
- FaceRetouchingOff
- Fireplace
- ErrorOutline
- Stop
- ViewList
- Send
- PlayCircleFilledWhite
- PlaylistAddCheck
- Telegram
- VerifiedUser
- Notifications
- MenuOpen
- GppGood
- ContactPhone
- Payment
- FolderShared
- Class
- Shield
- MoveUp
- VolunteerActivism
- DisplaySettings
- Apartment
- BusAlert
- Category
- FilterNone
- Forest
- MedicalServices
- School
- SportsTennis
- TheaterComedy
- ReportGmailerrorred
- ArrowCircleUp
- UploadFile
- YouTube
- Web
- AccountCircle
- AccessibilityNew
- Chat
- FolderOpen
- FileCopyOutlined
- KeyboardBackspace
- CheckCircleOutlined
- ReportProblemOutlined
- ManageAccounts
- PhotoLibrary
- SettingsBackupRestore
- SupervisorAccount
- Api
- FeaturedPlayList
- BugReportOutlined
- NewReleases
- ColorLens
- FolderOutlined
- Apps
- SpeakerNotes
- LocalCafe
- BurstModeSharp
- DevicesOther
- VideoLibrary
- AddOutlined
- DeleteOutlineOutlined
- EditOutlined
- MoreHorizOutlined
- Bookmarks
- CopyAll
- InsertComment
- KeyboardArrowRight
- FileDownload
- Done
- PendingOutlined
- HelpOutlineRounded
- ReportProblem
- HelpOutlined
Other Related APIs
@mui/icons-material#FolderOpen TypeScript Examples
The following examples show how to use
@mui/icons-material#FolderOpen.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Workspaces.tsx From sapio-studio with Mozilla Public License 2.0 | 4 votes |
export function Workspaces(props: { idx: number; value: number }) {
const dispatch = useDispatch();
const [workspaces, set_workspaces] = React.useState<string[]>([]);
const [to_delete, set_to_delete] = React.useState<string | null>(null);
const [trigger_now, set_trigger_now] = React.useState(0);
const [show_new_workspace, set_new_workspace] = React.useState(false);
const hide_new_workspace = () => {
set_new_workspace(false);
};
const reload = () => {
set_trigger_now(trigger_now + 1);
};
React.useEffect(() => {
let cancel = false;
const update = async () => {
if (cancel) return;
try {
const list = await window.electron.sapio.workspaces.list();
set_workspaces(list);
} catch (err) {
console.error(err);
set_workspaces([]);
}
setTimeout(update, 5000);
};
update();
return () => {
cancel = true;
};
}, [trigger_now]);
const contract_rows = workspaces.map((id) => {
return {
id,
name: id,
};
});
const delete_workspace = (fname: string | number) => {
if (typeof fname === 'number') return;
set_to_delete(fname);
};
const columns: GridColumns = [
{
field: 'actions-load',
type: 'actions',
flex: 0.2,
getActions: (params) => [
<GridActionsCellItem
key="open-folder"
icon={<FolderOpen />}
label="Open"
onClick={() => {
// TODO: Better tabbing?
dispatch(switch_wallet_tab(3));
typeof params.id === 'string' &&
dispatch(switch_workspace(params.id));
}}
/>,
],
},
{
field: 'name',
headerName: 'Name',
width: 100,
type: 'text',
flex: 1,
},
{
field: 'actions-delete',
type: 'actions',
flex: 0.2,
getActions: (params) => [
<GridActionsCellItem
key="delete"
icon={<Delete />}
label="Delete"
onClick={() => delete_workspace(params.id)}
/>,
],
},
];
function CustomToolbar() {
return (
<GridToolbarContainer>
<Button onClick={() => set_new_workspace(true)}>
New Workspace<Add></Add>
</Button>
</GridToolbarContainer>
);
}
return (
<div hidden={props.idx !== props.value} className="WorkspaceList">
<NewWorkspace
show={show_new_workspace}
hide={hide_new_workspace}
reload={reload}
/>
<DeleteDialog
set_to_delete={() => set_to_delete(null)}
to_delete={to_delete !== null ? ['workspace', to_delete] : null}
reload={reload}
/>
{props.idx === props.value && (
<div className="WorkspaceListInner">
<div></div>
<div>
<DataGrid
components={{
Toolbar: CustomToolbar,
}}
rows={contract_rows}
columns={columns}
disableExtendRowFullWidth={false}
columnBuffer={3}
pageSize={10}
rowsPerPageOptions={[5]}
disableColumnSelector
disableSelectionOnClick
/>
</div>
<div></div>
</div>
)}
</div>
);
}