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

refactor: convert ConnectWalletPrompt to mui #619

Open
wants to merge 3 commits into
base: refactor/wallet
Choose a base branch
from

Conversation

DanielSchiavini
Copy link
Contributor

@DanielSchiavini DanielSchiavini commented Jan 23, 2025

Copy link

vercel bot commented Jan 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
curve-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 0:08am
curve-dapp-crvusd ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 0:08am
curve-dapp-dao ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 0:08am
curve-dapp-lend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 0:08am
curve-dapp-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 0:08am

@DanielSchiavini DanielSchiavini force-pushed the refactor/wallet-connect-mui branch from ff0c894 to 31edeb7 Compare January 23, 2025 12:03
onClick={connectWallet}
loading={isLoading}
loadingPosition="start"
data-testid={`btn-connect-prompt${isLoading ? '-loading' : ''}`}
Copy link
Collaborator

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>
Copy link
Collaborator

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',
Copy link
Collaborator

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
Copy link
Collaborator

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">
Copy link
Collaborator

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%"
Copy link
Collaborator

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%">
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants