Refactored queries.

This commit is contained in:
Mike Cao 2024-01-30 00:10:25 -08:00
parent 18e36aa7b3
commit b16f5cc067
67 changed files with 523 additions and 576 deletions

View file

@ -1,6 +1,6 @@
import { useApi, useMessages } from 'components/hooks';
import { Icon, Icons, LoadingButton, Text } from 'react-basics';
import { setValue } from 'store/cache';
import { touch } from 'store/cache';
export function TeamMemberRemoveButton({
teamId,
@ -22,7 +22,7 @@ export function TeamMemberRemoveButton({
const handleRemoveTeamMember = () => {
mutate(null, {
onSuccess: () => {
setValue('team:members', Date.now());
touch('team:members');
onSave?.();
},
});