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