Commit fd15d0de authored by Choi Ga Young's avatar Choi Ga Young
Browse files

삭제시 페이지 이동

parent f07adc61
......@@ -4,7 +4,7 @@ import styles from "./studyplan.module.scss";
const AddplanList = ({ planList }) => {
return (
<div className={`mt-5 ${styles.list}`}>
<div className={`mt-4 ${styles.list}`}>
<div className={`accordion accordion-flush`} id="addplanlist">
<PlanItem planList={planList.planList} subjectId={planList.id} />
</div>
......
......@@ -17,7 +17,7 @@ const PlanItem = ({ planList = [], subjectId }) => {
setError("")
await planApi.remove(planId, user.id)
alert("해당 계획을 성공적으로 삭제했습니다.")
history.push(`/studyplan/${subjectId}`)
history.push("/studyplan")
} catch (error) {
catchErrors(error, setError)
}
......
.list {
height: 70vh;
height: 75vh;
overflow-y: auto;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment