|
1 | 1 | import React, { FC, useContext } from "react"; |
2 | | -import PopupModal from "../common/PopupModal"; |
3 | | -import UserAPIClient from "../../APIClients/UserAPIClient"; |
4 | 2 | import { useToast } from "@chakra-ui/react"; |
5 | | -import AuthContext from "../../contexts/AuthContext"; |
6 | | -import AUTHENTICATED_USER_KEY from "../../constants/AuthConstants"; |
| 3 | +import PopupModal from "../../../components/common/PopupModal"; |
| 4 | +import UserAPIClient from "../../../APIClients/UserAPIClient"; |
| 5 | +import AuthContext from "../../../contexts/AuthContext"; |
| 6 | +import AUTHENTICATED_USER_KEY from "../../../constants/AuthConstants"; |
7 | 7 |
|
8 | 8 | interface DeleteUserModalProps { |
9 | 9 | isOpen: boolean; // Whether the modal should be visible |
@@ -50,14 +50,12 @@ const DeleteUserModal: FC<DeleteUserModalProps> = ({ |
50 | 50 | return ( |
51 | 51 | <PopupModal |
52 | 52 | open={isOpen} |
53 | | - title={"Delete User?"} |
54 | | - message={ |
55 | | - "Are you sure you want to delete this user? This process cannot be undone." |
56 | | - } |
57 | | - primaryButtonText={"Delete"} |
| 53 | + title="Delete User?" |
| 54 | + message="Are you sure you want to delete this user? This process cannot be undone." |
| 55 | + primaryButtonText="Delete" |
58 | 56 | onPrimaryClick={handlePrimaryButtonClick} |
59 | | - primaryButtonColor={"red"} |
60 | | - secondaryButtonText={"Cancel"} |
| 57 | + primaryButtonColor="red" |
| 58 | + secondaryButtonText="Cancel" |
61 | 59 | onSecondaryClick={handleSecondaryButtonClick} |
62 | 60 | /> |
63 | 61 | ); |
|
0 commit comments