Updated settings components.
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user