refactor: useAlertStore 사용부 리팩토링
This commit is contained in:
@@ -52,7 +52,7 @@ const LwpoCodeManagementDialog = memo(
|
||||
const isRegistration = !lwpoCd;
|
||||
|
||||
const { confirm } = useConfirm();
|
||||
const { setMessage: alert } = useAlertStore((state) => state);
|
||||
const alert = useAlertStore((state) => state.setMessage);
|
||||
|
||||
const { data: detailData } = useQuery({
|
||||
queryKey: [ENDPOINT.CMS_SERVICE.LWPO_CODE, upCd, lwpoCd],
|
||||
|
||||
@@ -51,7 +51,7 @@ const UpCodeManagementDialog = memo(
|
||||
const isRegistration = !upCd;
|
||||
|
||||
const { confirm } = useConfirm();
|
||||
const { setMessage: alert } = useAlertStore((state) => state);
|
||||
const alert = useAlertStore((state) => state.setMessage);
|
||||
|
||||
const { data: detailData } = useQuery({
|
||||
queryKey: [ENDPOINT.CMS_SERVICE.UP_CODE, upCd],
|
||||
|
||||
Reference in New Issue
Block a user