Fix naming issues.

This commit is contained in:
Brian Cao 2022-12-26 12:47:03 -08:00
parent 4451fc5982
commit b9fcab0597
5 changed files with 24 additions and 33 deletions

View file

@ -6,7 +6,7 @@ import styles from './Form.module.css';
const CONFIRM_VALUE = 'DELETE';
export default function WebsiteDeleteForm({ userId, onSave, onClose }) {
export default function UserDeleteForm({ userId, onSave, onClose }) {
const { del } = useApi(getAuthToken());
const { mutate, error, isLoading } = useMutation(data => del(`/users/${userId}`, data));