-
Notifications
You must be signed in to change notification settings - Fork 75
Feature/background #1277
base: dev
Are you sure you want to change the base?
Feature/background #1277
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
sections/shared/Layout/AppLayout.tsx
Outdated
`} | ||
${({ stakingV2Enabled }) => media.greaterThan('mdUp')` | ||
padding-left: ${ | ||
stakingV2Enabled ? '0px' : `calc(${DESKTOP_SIDE_NAV_WIDTH + DESKTOP_BODY_PADDING}px)` |
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 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.
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.
From the perspective of searching for it? Makes sense.
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 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!
CSS Repeat pattern