Remove useless hook usage

This commit is contained in:
Pierre HUBERT 2023-07-07 19:03:17 +02:00
parent 6aceda7fe7
commit ce7e21d20d

View File

@ -11,7 +11,6 @@ import {
Typography,
} from "@mui/material";
import React from "react";
import { useNavigate } from "react-router-dom";
import { Family, FamilyApi } from "../api/FamilyApi";
import { CreateFamilyDialog } from "../dialogs/CreateFamilyDialog";
import { JoinFamilyDialog } from "../dialogs/JoinFamilyDialog";
@ -185,7 +184,6 @@ function FamilyCard(p: {
}): React.ReactElement {
const confirm = useConfirm();
const alert = useAlert();
const navigate = useNavigate();
const leaveFamily = async () => {
try {