Fixed a bug where post reminder modal didn't close (#29615)

* Fixed  abug where post reminder modal didnt close

* Fixed a test
Этот коммит содержится в:
Harshil Sharma
2024-12-16 14:52:55 +05:30
коммит произвёл GitHub
родитель 89e250e5b7
Коммит e2020dc0d6
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@@ -32,7 +32,8 @@ function PostReminderCustomTimePicker({userId, timezone, onExited, postId, actio
const handleConfirm = useCallback((dateTime: Moment) => {
actions.addPostReminder(userId, postId, toUTCUnix(dateTime.toDate()));
}, [actions, postId, userId]);
onExited();
}, [actions, postId, userId, onExited]);
return (
<DateTimePickerModal

Просмотреть файл

@@ -11,7 +11,7 @@ exports[`GenericModal should match snapshot for base case 1`] = `
aria-hidden="true"
/>
<div
role="dialog"
role="none"
>
<div
class="fade modal-backdrop in"