[리마인더] 티비 오류 수정중

This commit is contained in:
sungmin.in
2024-05-10 17:55:26 +09:00
parent eb43543d16
commit afd7e7ee66

View File

@@ -130,19 +130,19 @@ export default function Reminders({ title, cbScrollTo }) {
dispatch(setHidePopup());
}, [dispatch]);
const handleCancelButtonClick = useCallback(() => {
setActiveDelete(false);
// const handleCancelButtonClick = useCallback(() => {
// setActiveDelete(false);
const initialSelectedItems = upComingAlertShow.alertShows?.reduce(
(acc, item) => {
acc[item.showId] = false;
return acc;
},
{}
);
setSelectedItems(initialSelectedItems);
setSelectAll(false);
}, [upComingAlertShow]);
// const initialSelectedItems = upComingAlertShow.alertShows?.reduce(
// (acc, item) => {
// acc[item.showId] = false;
// return acc;
// },
// {}
// );
// setSelectedItems(initialSelectedItems);
// setSelectAll(false);
// }, [upComingAlertShow]);
// useEffect(() => {
// if (upComingAlertShow.alertShows.length === 0) {
@@ -273,7 +273,7 @@ export default function Reminders({ title, cbScrollTo }) {
<TButton
type={TYPES.mypage}
className={css.cancelBtn}
onClick={handleCancelButtonClick}
// onClick={handleCancelButtonClick}
>
{$L("Cancel")}
</TButton>