Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Conversation

@jmzwar
Copy link
Contributor

@jmzwar jmzwar commented Sep 1, 2022

CSS Repeat pattern

@vercel
Copy link

vercel bot commented Sep 1, 2022

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

Name Status Preview Updated
staking ✅ Ready (Inspect) Visit Preview Sep 1, 2022 at 10:35PM (UTC)
staking-storybook ✅ Ready (Inspect) Visit Preview Sep 1, 2022 at 10:35PM (UTC)

@jmzwar jmzwar requested a review from a team September 1, 2022 21:52
`}
${({ stakingV2Enabled }) => media.greaterThan('mdUp')`
padding-left: ${
stakingV2Enabled ? '0px' : `calc(${DESKTOP_SIDE_NAV_WIDTH + DESKTOP_BODY_PADDING}px)`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use const STAKING_V2_ENABLED directly here?
If we only use const as is everywhere it will be easy to find and remove it later, comparing to cleaning up extra custom props.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the perspective of searching for it? Makes sense.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant if this env var is globally available we don't need custom props at all.
this is def a nice improvement for easy search for sure!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants