Skip to content
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: add confirmation modal #299

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

mateuszszczecina
Copy link
Collaborator

@mateuszszczecina mateuszszczecina commented Dec 17, 2024

Jira issue(s)

https://selleolabs.atlassian.net/browse/LC-483

Overview

Add confirmation modal for delete content

Screenshots

Screenshot 2024-12-17 at 14 34 23

@mateuszszczecina mateuszszczecina added the review me 👀 PR is ready to be reviewed label Dec 17, 2024
@mateuszszczecina mateuszszczecina self-assigned this Dec 17, 2024
@mateuszszczecina mateuszszczecina changed the title feat add confirmation modal feat: add confirmation modal Dec 17, 2024
Copy link
Member

@typeWolffo typeWolffo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 with some suggestions

@@ -4,3 +4,11 @@ export type LessonTypes =
| "video"
| "external_video"
| undefined;

export enum DeleteContentType {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider replacing enum with a const object - it would give us better type guarantees.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also see that DeleteContentType is very similar to the LessonType from Admin/EditCourse/EditCourse.types.ts maybe it is worth to create some shared, extendable types?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ye sure, i will change it

@mateuszszczecina mateuszszczecina merged commit f928801 into main Dec 18, 2024
4 of 6 checks passed
@mateuszszczecina mateuszszczecina deleted the ms_feat_483_confirmation_modal branch December 18, 2024 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review me 👀 PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants