Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
yiw008 committed Dec 11, 2024
1 parent cdf7669 commit 64f9d79
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 33 deletions.
4 changes: 2 additions & 2 deletions src/app/Dashboard/_components/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const Dashboard: React.FC = () => {
counter={`${jobs?.data?.result?.length} jobs`}
loading={jobs?.isLoading}
/>
{(extension !== undefined && extension.showMLHub != false) && (
{extension !== undefined && extension.showMLHub != false && (
<DashboardCard
icon="share"
name="ML Hub"
Expand All @@ -133,7 +133,7 @@ const Dashboard: React.FC = () => {
loading={apps?.isLoading}
/>
)}
{(extension !== undefined && extension.showMLEdge != false) && (
{extension !== undefined && extension.showMLEdge != false && (
<DashboardCard
icon="simulation"
name="ML Edge"
Expand Down
63 changes: 32 additions & 31 deletions src/app/_components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,39 +264,40 @@ const Sidebar: React.FC = () => {
{accessToken && (
<>
{mainSidebarItems.map((item) => item)}
{secondarySidebarItems.length > 0 &&
(extension !== undefined && extension.showSecondarySideBar != false) && (
<>
<div
onClick={toggleSecondaryItems}
style={{
whiteSpace: 'nowrap',
cursor: 'pointer',
}}
>
<ListItemButton
sx={{
color: '#707070',
pl: '1.4rem',
pt: '5px',
pb: '5px',
{secondarySidebarItems.length > 0 &&
extension !== undefined &&
extension.showSecondarySideBar != false && (
<>
<div
onClick={toggleSecondaryItems}
style={{
whiteSpace: 'nowrap',
cursor: 'pointer',
}}
>
{openSecondary ? (
<ExpandLessRounded />
) : (
<ExpandMoreRounded />
)}
{expanded && (
<ListItemText primary="More" sx={{ pl: '.5rem' }} />
)}
</ListItemButton>
</div>
<Collapse in={openSecondary}>
{secondarySidebarItems.map((item) => item)}
</Collapse>
</>
)}
<ListItemButton
sx={{
color: '#707070',
pl: '1.4rem',
pt: '5px',
pb: '5px',
}}
>
{openSecondary ? (
<ExpandLessRounded />
) : (
<ExpandMoreRounded />
)}
{expanded && (
<ListItemText primary="More" sx={{ pl: '.5rem' }} />
)}
</ListItemButton>
</div>
<Collapse in={openSecondary}>
{secondarySidebarItems.map((item) => item)}
</Collapse>
</>
)}
</>
)}
</Navbar>
Expand Down

0 comments on commit 64f9d79

Please sign in to comment.