refactor: 첫번째 plan의 삭제버튼 제거

This commit is contained in:
Daseul Kim 2024-12-26 16:15:26 +09:00
parent 90d8e867bd
commit f5ee816b19

View File

@ -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>