Allow hiding of create team button.

This commit is contained in:
Mike Cao 2023-12-19 23:20:04 -08:00
parent 4625a335a0
commit 54ace15338
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ export function TeamJoinForm({ onSave, onClose }: { onSave: () => void; onClose:
const { mutate, error } = useMutation({ mutationFn: (data: any) => post('/teams/join', data) });
const ref = useRef(null);
const handleSubmit = async data => {
const handleSubmit = async (data: any) => {
mutate(data, {
onSuccess: async () => {
setValue('teams:members', Date.now());