-
Notifications
You must be signed in to change notification settings - Fork 0
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
style: admin view mobile #58
Conversation
Visit the preview URL for this PR (updated for commit 9f9a9b7): https://community-fridge-kw--pr58-akshay-feat-admin-vi-wvtxsrhc.web.app (expires Thu, 09 Dec 2021 07:21:00 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
</Text> | ||
)} | ||
{isMobile && ( | ||
<Badge |
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.
Wondering if Badge should be a component...
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.
it can, you can create a variant for it similar to what we have for the buttons in theme.tsx
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.
color={`${(colorMap as any)[schedule!.frequency]}.100`} | ||
backgroundColor={`${(colorMap as any)[schedule!.frequency] | ||
}.200`} |
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 the color map needs to be edited to be "One time donation" for the key
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.
Oh okay, lemme check with the designers to see what they finally decided on
@@ -46,8 +50,8 @@ const DefaultWeeklyEventItem = ({ | |||
borderColor="#D8DDE0" | |||
alignItems="center" | |||
centerContent | |||
py="1.5rem" | |||
px="2rem" | |||
py={isMobile ? "1.25rem" : "1.5rem"} |
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.
since you're not doing any conditional rendering, I think all of the isMobile
can just be
py={{base: "1.25rem", lg: "1.5rem"}}
but this is fine!
Notion ticket link
Ticket Name
Implementation description
Steps to test
What should reviewers focus on?
Checklist