mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
web: fix trial expired reminder dialog shown again and again
This commit is contained in:
@@ -131,14 +131,17 @@ export const ReminderDialog = DialogManager.register(function ReminderDialog(
|
||||
testId="reminder-dialog"
|
||||
isOpen={true}
|
||||
title={reminder.title}
|
||||
onClose={() => props.onClose(false)}
|
||||
onClose={() => {
|
||||
Config.set(reminderKey, true);
|
||||
props.onClose(false);
|
||||
}}
|
||||
showCloseButton
|
||||
description={reminder.description}
|
||||
positiveButton={{
|
||||
text: <Flex>{reminder.cta.title}</Flex>,
|
||||
onClick: async () => {
|
||||
if (reminder.cta.action) await reminder.cta.action();
|
||||
|
||||
Config.set(reminderKey, true);
|
||||
props.onClose(true);
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user