import { useState } from "react"; import { Link } from "react-router-dom"; import catchErrors from "../../utils/catchErrors.js"; import styles from "./schedule.module.scss"; const ScheduleItem = () => { const [error, setError] = useState("") async function delSchedule() { try { setError("") alert("해당 일정을 성공적으로 삭제하였습니다.") window.location.reload() } catch (error) { catchErrors(error, setError) } } return (
sadsadsadsa
dlkasjflsajflasjflsakfjlsajflalsafjsask
fjlakdjflajflaksj lksajdlksajs dslkafjlsakflksjflasjflksjslakjflsakjflsajflsakjlasjflksajlfsja
수정
) } export default ScheduleItem