Skip to content

Commit

Permalink
fix: lint + type check
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhickey committed Dec 6, 2024
1 parent 31c9dab commit 0b7a615
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pages/students/[student_id].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { trpc } from "@/client/lib/trpc";
import { Box, Button, Container, Modal, Stack, TextField } from "@mui/material";
import { Box, Button, Container, Modal, Stack } from "@mui/material";
import { addYears, format, parseISO, subDays } from "date-fns";
import { useRouter } from "next/router";
import { useState } from "react";
Expand All @@ -15,7 +15,6 @@ import $StudentPage from "../../styles/StudentPage.module.css";
import { EditStudentModal } from "@/components/student/EditStudentModal";

import * as React from "react";
import Typography from "@mui/material/Typography";

const ViewStudentPage = () => {
const [open, setOpen] = useState(false);
Expand Down Expand Up @@ -71,9 +70,9 @@ const ViewStudentPage = () => {
onSuccess: () => utils.student.getActiveStudentIep.invalidate(),
});

const handleEditStudent = (e: React.ChangeEvent<HTMLFormElement>) => {
const handleEditStudent = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
const data = new FormData(e.currentTarget);
const data = new FormData(e.currentTarget as HTMLFormElement);

if (!student) {
return; // TODO: improve error handling
Expand Down

0 comments on commit 0b7a615

Please sign in to comment.