-
Notifications
You must be signed in to change notification settings - Fork 29
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
refactor: convert ConnectWalletPrompt to mui #619
base: refactor/wallet
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
ff0c894
to
31edeb7
Compare
onClick={connectWallet} | ||
loading={isLoading} | ||
loadingPosition="start" | ||
data-testid={`btn-connect-prompt${isLoading ? '-loading' : ''}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose you wanted to test this with cypress but forgot?
spacing={3} | ||
> | ||
<CurveLogo src={LogoImg} alt="Curve Logo" /> | ||
<Typography variant="headingXxl">Enter Curve</Typography> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muh t`Enter Curve`
padding={7} | ||
sx={{ | ||
backgroundColor: 'var(--table--background-color)', | ||
maxWidth: '50rem', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's based on the old component but imo we should get rid of the magic numbers and use design system sizes and spaces
}} | ||
> | ||
<Box display="flex" position="relative" width="100%"> | ||
<Box |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can get rid of this Box and just use a (non-absolute-positioned) Stack with
sx={{
backgroundImage: `url(${getBackgroundUrl(useUserProfileStore((state) => state.theme))})`,
backgroundSize: 'contain',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
}}
<Typography variant="headingXxl">Enter Curve</Typography> | ||
</Stack> | ||
</Box> | ||
<Stack gap={3} alignItems="center" width="100%" margin="0 auto"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width="100%" margin="0 auto"
can be removed
<Stack | ||
position="absolute" | ||
alignItems="center" | ||
width="100%" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed I think
maxWidth: '50rem', | ||
}} | ||
> | ||
<Box display="flex" position="relative" width="100%"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width="100%"
can be removed I think
var(--table--background-color)
for now as that's white for chadloading
prop mui/material-ui#44637