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