Skip to content

Commit

Permalink
fix: Display the widget in the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Feb 7, 2024
1 parent 28f84b5 commit feb856b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dashboard/FirstSteps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type StatusProgressItems = Array<{
const StatusProgress = ({ items }: { items: StatusProgressItems }) => {
const totalNumberOfItems = items.length
const completedItems = items.filter((item) => item.completed)
const progress = Math.ceil(completedItems.length / totalNumberOfItems) * 100
const progress = Math.round((completedItems.length / totalNumberOfItems) * 100)

return (
<>
Expand Down
9 changes: 9 additions & 0 deletions src/components/dashboard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import FirstSteps from '@/components/dashboard/FirstSteps'
import type { ReactElement } from 'react'
import dynamic from 'next/dynamic'
import { Grid } from '@mui/material'
Expand Down Expand Up @@ -32,6 +33,14 @@ const Dashboard = (): ReactElement => {
<Overview />
</Grid>

<Grid item xs={12}>
<Grid container>
<Grid item xs={12} lg={4}>
<FirstSteps />
</Grid>
</Grid>
</Grid>

<Grid item xs={12} lg={6}>
<PendingTxsList />
</Grid>
Expand Down

0 comments on commit feb856b

Please sign in to comment.