-
- {token.id}
- |
- {moment(token.created_at).format("L")} |
-
+ |
- updateCallback({ token: token.id, note: nextValue })
+ update.mutate({ token: token.id, note: nextValue })
}
>
|
-
+ |
+ {token.id}
+ |
+
+ {moment(token.created_at).format("L")}
+ |
+
{
},
});
- const { mutate: update } = useMutation(AuthService.updateToken, {
+ const updateMutation = useMutation(AuthService.updateToken, {
onSuccess: () => {
list();
},
@@ -42,7 +42,7 @@ const useTokens = () => {
return {
createToken,
list,
- update,
+ updateMutation,
revoke,
isLoading,
data,
|