Skip to content

Commit

Permalink
Fix error with console, use terminal icon
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Dec 20, 2024
1 parent 14eb95d commit 81567aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions imports/dashboard/console/consoleView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Typography from '@mui/material/Typography'
import styled from '@emotion/styled'

const chrome =
typeof window === 'object' &&
Object.hasOwnProperty.call(window, 'chrome') &&
typeof navigator === 'object' &&
typeof navigator.userAgent === 'string' &&
Expand Down
4 changes: 2 additions & 2 deletions imports/dashboard/dashboardLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Login from '@mui/icons-material/Login'
import Logout from '@mui/icons-material/Logout'
import MenuIcon from '@mui/icons-material/Menu'
import TrendingUp from '@mui/icons-material/TrendingUp'
import CallToAction from '@mui/icons-material/CallToAction'
import Terminal from '@mui/icons-material/Terminal'
import Settings from '@mui/icons-material/Settings'
import Storage from '@mui/icons-material/Storage'

Expand Down Expand Up @@ -118,7 +118,7 @@ const DashboardLayout = (
{drawerVariant === 'permanent' && <Toolbar />}
<List>
<DrawerItem name='Statistics' subUrl='' icon={<TrendingUp />} />
<DrawerItem name='Console' subUrl='console' icon={<CallToAction />} />
<DrawerItem name='Console' subUrl='console' icon={<Terminal />} />
<DrawerItem name='Files' subUrl='files' icon={<Storage />} />
</List>
</Drawer>
Expand Down
4 changes: 2 additions & 2 deletions imports/servers/serverListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Storage from '@mui/icons-material/Storage'
import Stop from '@mui/icons-material/Stop'
import Close from '@mui/icons-material/Close'
import PlayArrow from '@mui/icons-material/PlayArrow'
import Comment from '@mui/icons-material/Comment'
import Terminal from '@mui/icons-material/Terminal'
import UnstyledLink from '../helpers/unstyledLink'
import type { ExtraServerInfo } from './serverList'

Expand Down Expand Up @@ -75,7 +75,7 @@ export const ServerListItem = ({
{status === 1 && (
<Tooltip title='Run Command'>
<IconButton aria-label='run command' color='secondary' onClick={() => openDialog()}>
<Comment />
<Terminal />
</IconButton>
</Tooltip>
)}
Expand Down

0 comments on commit 81567aa

Please sign in to comment.