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"; ...@@ -4,7 +4,7 @@ import styles from "./studyplan.module.scss";
const AddplanList = ({ planList }) => { const AddplanList = ({ planList }) => {
return ( return (
<div className={`mt-5 ${styles.list}`}> <div className={`mt-4 ${styles.list}`}>
<div className={`accordion accordion-flush`} id="addplanlist"> <div className={`accordion accordion-flush`} id="addplanlist">
<PlanItem planList={planList.planList} subjectId={planList.id} /> <PlanItem planList={planList.planList} subjectId={planList.id} />
</div> </div>
......
...@@ -17,7 +17,7 @@ const PlanItem = ({ planList = [], subjectId }) => { ...@@ -17,7 +17,7 @@ const PlanItem = ({ planList = [], subjectId }) => {
setError("") setError("")
await planApi.remove(planId, user.id) await planApi.remove(planId, user.id)
alert("해당 계획을 성공적으로 삭제했습니다.") alert("해당 계획을 성공적으로 삭제했습니다.")
history.push(`/studyplan/${subjectId}`) history.push("/studyplan")
} catch (error) { } catch (error) {
catchErrors(error, setError) catchErrors(error, setError)
} }
......
.list { .list {
height: 70vh; height: 75vh;
overflow-y: auto; 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