Skip to content

Commit

Permalink
fix: adjust modal design slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Nov 14, 2024
1 parent 43e3903 commit 8a76b02
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const SingleSafeSetup = ({
justifyContent: 'start',
flexDirection: 'row',
gap: '1',
border: ({ palette }) => `1px solid ${palette.border.light}`,
}}
onClick={onSelect}
>
Expand All @@ -44,6 +45,7 @@ const SingleSafeSetup = ({
owners={setup.owners.length}
threshold={setup.threshold}
chainId={setup.chainId}
size={32}
/>
</Box>

Expand All @@ -59,15 +61,15 @@ const SingleSafeSetup = ({
</Typography>
</Typography>

<ChainIndicator chainId={setup.chainId} responsive />
<ChainIndicator chainId={setup.chainId} />
</ButtonBase>
)
}

const SetupSelector = ({ setups, selectedChain }: { setups: SafeSetup[]; selectedChain: string | null }) => {
const { setValue } = useFormContext<SynchronizeSetupsData>()
return (
<Stack>
<Stack spacing={1}>
{setups.map((setup) => (
<SingleSafeSetup
key={setup.chainId}
Expand Down Expand Up @@ -106,8 +108,11 @@ export const SelectNetworkStep = ({
<TxCard>
<FormProvider {...formMethods}>
<form onSubmit={onFormSubmit}>
<Stack gap={1}>
<Typography variant="h5">Select network</Typography>
<Stack spacing={1} mb={2}>
<Typography variant="body2">
This action copies the setup from another Safe account with the same address.
</Typography>
<Typography variant="h5">Select Setup to copy</Typography>
<SetupSelector setups={deviatingSetups} selectedChain={selectedChain} />
</Stack>
<Divider className={commonCss.nestedDivider} />
Expand Down

0 comments on commit 8a76b02

Please sign in to comment.