-
Notifications
You must be signed in to change notification settings - Fork 2
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
developer delete items #12
base: dev
Are you sure you want to change the base?
Conversation
This PR is a work in progress -- DELETE endpoints have not been tested. |
@@ -14,6 +14,7 @@ import { | |||
TableRow, | |||
} from "@mui/material"; | |||
import EditIcon from "@mui/icons-material/Edit"; | |||
import DeleteIcon from '@mui/icons-material/Delete'; |
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 an AdminDeleteIcon
component, reuse that instead
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.
sorry for late reply, but id like to raise a bit of a nitpick. in AdminDeleteIcon
a required prop is noteId
but what we're deleting/editing is an instance of DataTypeKey = "categories" | "subjects" | "types";
. Regardless I can repurpose the existing component, but the prop names are a bit misleading tbh
aedbfe3
to
6c90e50
Compare
ad2e8f8
to
ae0e45c
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
411922f
to
4165535
Compare
a1ff944
to
6442fc2
Compare
This PR implements the DELETE endpoint for /category /document_type and /subject as well as the UI for deletion.