Skip to content

Commit

Permalink
fix: Add typescript for AddReasoning modalstate
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristina2103 committed Jun 21, 2024
1 parent 1c1950c commit e737ca0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ControlledField } from "@organisms";
import { useModal } from "@context";
import { useRouter } from "next/navigation";
import { useSnackbar } from "@/context/snackbar";
import { OpenAddReasoningModalState } from "../types";

interface AddReasoningFormData {
title: string;
Expand All @@ -23,7 +24,7 @@ export const AddReasoningModal = () => {
const t = useTranslations("Modals");
const {
state: { callback },
} = useModal();
} = useModal<OpenAddReasoningModalState>();
const router = useRouter();
const { addSuccessAlert, addErrorAlert } = useSnackbar();

Expand Down

0 comments on commit e737ca0

Please sign in to comment.