-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: Consolidate 3 modals into BaseNotificationModal #2570
Conversation
assets/tests/components/notificationModals/chelseaLoweredNotificationModal.test.tsx
Outdated
Show resolved
Hide resolved
assets/src/components/notificationModals/basicNotificationModal.tsx
Outdated
Show resolved
Hide resolved
assets/tests/components/notificationModals/inactiveStateModal.test.tsx
Outdated
Show resolved
Hide resolved
Coverage of commit
|
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.
Approving again to try and get the asana task to run properly
import { StateDispatchContext } from "../../contexts/stateDispatchContext" | ||
import { OldCloseIcon } from "../../helpers/icon" | ||
|
||
const BasicNotificationModal = ({ |
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.
Commenting a bit late here, but did you mean for this to be Basic
or Base
?
I only ask because the title of the PR says Base
, and that's what I would normally have expected.
The JSX of the Chelsea Bridge modals seemed structurally copy-pasted from the Inactive Notification Modal (the classnames still referred to the Inactive Notif Modal, which seemed misleading), so it seemed logical to consolidate into BaseNotificationModal before converting that modal to the Restart UI component.
Asana Ticket: https://app.asana.com/0/1205385723132845/1206770630583768