-
Notifications
You must be signed in to change notification settings - Fork 280
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
Accounts, Part 3 #65
Accounts, Part 3 #65
Conversation
|
||
if (rootData?.cart?._data) { | ||
return rootData?.cart?._data; | ||
} | ||
|
||
throw rootData?.cart |
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 crashes the app if there is no cart present, so I removed it. We should reconsider whether we want a "magic" hook like this in H2.0.
event.currentTarget.value.length && | ||
!event.currentTarget.validity.valid |
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.
Prevents the error from showing up if the user hasn't had a god-dang chance to fill it out yet!!!
## Context Added basic `<Layout />` component for handling the `<Header />` and `<Footer />` logic. Included some refactoring of the remix components for a better structure/overview ## Changes - Changed the remix components folder structure for better overview - Fixed Storybook aliases - Fixed Storybook tailwind content path - Added new component for handling the` <Layout />` - Added basic `<Header />` component with logo only - Added `<Footer />` component in the styling from the CBT design - Add skip to content link ## Screenshot ![footer-component](https://github.com/code-internet-applications/cbt-hydrogen/assets/2558163/b29d532b-a75c-465e-b9c6-4f81ab12fd47) ## Paperwork [SCH-24](https://codeinternetapplications.atlassian.net/browse/SCH-24) [SCH-25](https://codeinternetapplications.atlassian.net/browse/SCH-25) [SCH-26](https://codeinternetapplications.atlassian.net/browse/SCH-26) ## Checklist - [x] My code follows the style guidelines of this project - [x] I've performed a self-review of my own code - [x] I've added a changeset if this PR contains user-facing or noteworthy changes - [x] I've commented my code, particularly in hard-to-understand areas - [x] I've made corresponding changes to the documentation - [x] I've tested my code for breaking changes and added the corresponding footer in this PR if needed [SCH-24]: https://codeinternetapplications.atlassian.net/browse/SCH-24?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [SCH-25]: https://codeinternetapplications.atlassian.net/browse/SCH-25?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [SCH-26]: https://codeinternetapplications.atlassian.net/browse/SCH-26?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.14.0 to 5.25.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.25.0/packages/parser)
Builds out the Address CRUD functionality, and refactors everything to share a single modal.
RE: #1