refactor: 첫번째 plan의 삭제버튼 제거
This commit is contained in:
parent
90d8e867bd
commit
f5ee816b19
@ -37,18 +37,20 @@ export default function CanvasLayout({ children }) {
|
||||
onClick={() => handleCurrentPlan(plan.id)}
|
||||
>
|
||||
<span>{`Plan ${plan.ordering}`}</span>
|
||||
<i
|
||||
className="close"
|
||||
onClick={(e) =>
|
||||
swalFire({
|
||||
text: `Plan ${plan.ordering} ` + getMessage('plan.message.confirm.delete'),
|
||||
type: 'confirm',
|
||||
confirmFn: () => {
|
||||
handleDeletePlan(e, plan.id)
|
||||
},
|
||||
})
|
||||
}
|
||||
></i>
|
||||
{plan.ordering !== 1 && (
|
||||
<i
|
||||
className="close"
|
||||
onClick={(e) =>
|
||||
swalFire({
|
||||
text: `Plan ${plan.ordering} ` + getMessage('plan.message.confirm.delete'),
|
||||
type: 'confirm',
|
||||
confirmFn: () => {
|
||||
handleDeletePlan(e, plan.id)
|
||||
},
|
||||
})
|
||||
}
|
||||
></i>
|
||||
)}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user