-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add overview and CreateSafeInfo widget
- displays safe name and connected wallet during owner setup - displays hints for each step + dynamic hints during owner and threshold setup - state is pulled up into the CreateSafe component and update functions passed into the owner step
- Loading branch information
Showing
8 changed files
with
206 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import InfoWidget from '@/components/create-safe/InfoWidget' | ||
import { Grid } from '@mui/material' | ||
import type { AlertColor } from '@mui/material' | ||
|
||
export type CreateSafeInfoItem = { | ||
title: string | ||
variant: AlertColor | ||
steps: { title: string; text: string }[] | ||
} | ||
|
||
const CreateSafeInfos = ({ | ||
staticHint, | ||
dynamicHint, | ||
}: { | ||
staticHint: CreateSafeInfoItem | ||
dynamicHint?: CreateSafeInfoItem | ||
}) => { | ||
return ( | ||
<Grid item> | ||
<Grid container direction="column" gap={3}> | ||
<Grid item> | ||
<InfoWidget title={staticHint.title} variant={staticHint.variant} steps={staticHint.steps} /> | ||
</Grid> | ||
{dynamicHint && ( | ||
<Grid item> | ||
<InfoWidget title={dynamicHint.title} variant={dynamicHint.variant} steps={dynamicHint.steps} /> | ||
</Grid> | ||
)} | ||
</Grid> | ||
</Grid> | ||
) | ||
} | ||
|
||
export default CreateSafeInfos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.