Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: wrap connect wallet in Paper component #81

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 22 additions & 19 deletions src/components/ConnectWallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { OverviewLinks } from '@/components/OverviewLinks'
import { useChainId } from '@/hooks/useChainId'
import { getConnectedWallet } from '@/hooks/useWallet'
import SafeLogo from '@/public/images/safe-logo.svg'
import MediumPaper from '../MediumPaper'

export const ConnectWallet = (): ReactElement => {
const onboard = useOnboard()
Expand All @@ -34,30 +35,32 @@ export const ConnectWallet = (): ReactElement => {
}

return (
<Grid container flexDirection="column" alignItems="center" px={1} py={6}>
<SafeLogo alt="Safe{DAO} logo" width={125} height={110} />
<MediumPaper>
<Grid container flexDirection="column" alignItems="center" px={1} py={6}>
<SafeLogo alt="Safe{DAO} logo" width={125} height={110} />

<Typography variant="h1" m={5} mb={6} textAlign="center">
Welcome to the next generation of digital ownership
</Typography>
<Typography variant="h1" m={5} mb={6} textAlign="center">
Welcome to the next generation of digital ownership
</Typography>

<Grid item xs>
<KeyholeIcon />
</Grid>
<Grid item xs>
<KeyholeIcon />
</Grid>

<Typography color="text.secondary" my={3} mx={18} textAlign="center">
Connect your wallet to view your SAFE balance and delegate voting power
</Typography>
<Typography color="text.secondary" my={3} mx={18} textAlign="center">
Connect your wallet to view your SAFE balance and delegate voting power
</Typography>

<Grid item xs={4} mb={4}>
<Button variant="contained" color="primary" size="stretched" onClick={onClick}>
Connect wallet
</Button>
</Grid>
<Grid item xs={4} mb={4}>
<Button variant="contained" color="primary" size="stretched" onClick={onClick}>
Connect wallet
</Button>
</Grid>

<Grid item xs={12}>
<OverviewLinks />
<Grid item xs={12}>
<OverviewLinks />
</Grid>
</Grid>
</Grid>
</MediumPaper>
)
}
Loading