Updated settings components.

This commit is contained in:
Mike Cao committed 2023-01-20 17:12:53 -08:00
1 parent 1d9c3133f0
commit 91af593ff5
31 files changed
+805 -494

No files matched your search

@@ -5,7 +5,6 @@ import useUser from 'hooks/useUser';
export default function UserPasswordForm({ onSave, onClose, userId }) {
const user = useUser();
const isCurrentUser = !userId || user?.id === userId;
const url = isCurrentUser ? `/users/${user?.id}/password` : `/users/${user?.id}`;
const { post, useMutation } = useApi();