Skip to content

Commit

Permalink
add workaround for @mui/icons-material not published in ESM module fo…
Browse files Browse the repository at this point in the history
  • Loading branch information
magjac committed Dec 9, 2023
1 parent 1f580fe commit 804aaa8
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/ButtonAppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import Toolbar from '@mui/material/Toolbar/index.js';
import Typography from '@mui/material/Typography/index.js';
import Button from '@mui/material/Button/index.js';
import IconButton from '@mui/material/IconButton/index.js';
import MenuIcon from '@mui/icons-material/Menu.js';
import AddIcon from '@mui/icons-material/Add.js';
import OpenInBrowserIcon from '@mui/icons-material/OpenInBrowser.js';
import SaveAltIcon from '@mui/icons-material/SaveAlt.js';
import UndoIcon from '@mui/icons-material/Undo.js';
import RedoIcon from '@mui/icons-material/Redo.js';
import ZoomInIcon from '@mui/icons-material/ZoomIn.js';
import ZoomOutIcon from '@mui/icons-material/ZoomOut.js';
import ZoomOutMapIcon from '@mui/icons-material/ZoomOutMap.js';
import SettingsIcon from '@mui/icons-material/Settings.js';
import HelpIcon from '@mui/icons-material/Help.js';
import { Menu as MenuIcon } from '@mui/icons-material';
import { Add as AddIcon } from '@mui/icons-material';
import { OpenInBrowser as OpenInBrowserIcon } from '@mui/icons-material';
import { SaveAlt as SaveAltIcon } from '@mui/icons-material';
import { Undo as UndoIcon } from '@mui/icons-material';
import { Redo as RedoIcon } from '@mui/icons-material';
import { ZoomIn as ZoomInIcon } from '@mui/icons-material';
import { ZoomOut as ZoomOutIcon } from '@mui/icons-material';
import { ZoomOutMap as ZoomOutMapIcon } from '@mui/icons-material';
import { Settings as SettingsIcon } from '@mui/icons-material';
import { Help as HelpIcon } from '@mui/icons-material';
import GitHubIcon from './GitHubIcon.js'

const styles = {
Expand Down Expand Up @@ -114,7 +114,7 @@ function ButtonAppBar(props) {
aria-label="Menu"
onClick={handleMenuButtonClick}
size="large">
{/* <MenuIcon /> */}
<MenuIcon />
</IconButton>
<IconButton
id="new"
Expand All @@ -123,7 +123,7 @@ function ButtonAppBar(props) {
aria-label="New"
onClick={handleNewButtonClick}
size="large">
{/* <AddIcon /> */}
<AddIcon />
</IconButton>
<IconButton
id="open"
Expand All @@ -132,7 +132,7 @@ function ButtonAppBar(props) {
aria-label="OpenInBrowser"
onClick={handleOpenInBrowserButtonClick}
size="large">
{/* <OpenInBrowserIcon /> */}
<OpenInBrowserIcon />
</IconButton>
<IconButton
id="save-as"
Expand All @@ -141,7 +141,7 @@ function ButtonAppBar(props) {
aria-label="SaveAlt"
onClick={handleSaveAltButtonClick}
size="large">
{/* <SaveAltIcon /> */}
<SaveAltIcon />
</IconButton>
<IconButton
id="undo"
Expand All @@ -151,7 +151,7 @@ function ButtonAppBar(props) {
aria-label="Undo"
onClick={handleUndoButtonClick}
size="large">
{/* <UndoIcon /> */}
<UndoIcon />
</IconButton>
<IconButton
id="redo"
Expand All @@ -161,7 +161,7 @@ function ButtonAppBar(props) {
aria-label="Redo"
onClick={handleRedoButtonClick}
size="large">
{/* <RedoIcon /> */}
<RedoIcon />
</IconButton>
<Typography
variant="h6"
Expand All @@ -177,7 +177,7 @@ function ButtonAppBar(props) {
aria-label="ZoomIn"
onClick={handleZoomInButtonClick}
size="large">
{/* <ZoomInIcon /> */}
<ZoomInIcon />
</IconButton>
<IconButton
id="zoom-out"
Expand All @@ -186,7 +186,7 @@ function ButtonAppBar(props) {
aria-label="ZoomOut"
onClick={handleZoomOutButtonClick}
size="large">
{/* <ZoomOutIcon /> */}
<ZoomOutIcon />
</IconButton>
<IconButton
id="zoom-out-map"
Expand All @@ -195,7 +195,7 @@ function ButtonAppBar(props) {
aria-label="ZoomOutMap"
onClick={handleZoomOutMapButtonClick}
size="large">
{/* <ZoomOutMapIcon /> */}
<ZoomOutMapIcon />
</IconButton>
<Button
id="zoom-reset"
Expand Down Expand Up @@ -228,7 +228,7 @@ function ButtonAppBar(props) {
aria-label="Settings"
onClick={handleSettingsButtonClick}
size="large">
{/* <SettingsIcon /> */}
<SettingsIcon />
</IconButton>
<a
id="github"
Expand All @@ -238,9 +238,9 @@ function ButtonAppBar(props) {
rel="noreferrer noopener"
>
<IconButton color="inherit" aria-label="GitHub" size="large">
{/* <GitHubIcon
<GitHubIcon
viewBox='-2.4 -2.4 28.8 28.8'
/> */}
/>
</IconButton>
</a>
<IconButton
Expand All @@ -249,7 +249,7 @@ function ButtonAppBar(props) {
aria-label="Help"
onClick={handleHelpButtonClick}
size="large">
{/* <HelpIcon /> */}
<HelpIcon />
</IconButton>
</Toolbar>
</AppBar>
Expand Down

0 comments on commit 804aaa8

Please sign in to comment.