-
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
6393 add product chooser to system chooser screen #33
6393 add product chooser to system chooser screen #33
Conversation
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.
Looks pretty good - a couple minor things to take care of.
src/app/page.tsx
Outdated
<p>Loading systems...</p> | ||
)} | ||
</SelectSystemContainer> | ||
<> |
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.
This doesn't need to be wrapped, it can just be the SelectSystemContainer component.
src/app/page.tsx
Outdated
import { styled } from "@mitodl/smoot-design"; | ||
import { Typography } from "@mui/material"; | ||
import { Typography, Button } from "@mui/material"; |
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.
We have a Button
in smoot-design - this should use that so it matches the visual style of the rest of the app(s). (The props are pretty much the same between the two, I think, so this should be just swapping the imports. You can also pull in styled
from smoot-design if you want to apply custom CSS to it too. See https://github.com/mitodl/unified-ecommerce-frontend/blob/main/src/page-components/CartSummary/CartSummary.tsx to see in action.)
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.
LGTM 👍
What are the relevant tickets?
https://github.com/mitodl/hq/issues/6393
Description (What does it do?)
Adds the ability to adds products from a the selected system to the cart.
How can this be tested?