diff --git a/pkg/interface/src/views/apps/settings/components/lib/NotificationPref.tsx b/pkg/interface/src/views/apps/settings/components/lib/NotificationPref.tsx index 2c47eccc8a..c673f326a8 100644 --- a/pkg/interface/src/views/apps/settings/components/lib/NotificationPref.tsx +++ b/pkg/interface/src/views/apps/settings/components/lib/NotificationPref.tsx @@ -4,12 +4,12 @@ import { Text, ManagedToggleSwitchField as Toggle, } from "@tlon/indigo-react"; -import { Form, FormikHelpers } from "formik"; -import { FormikOnBlur } from "~/views/components/FormikOnBlur"; +import { Formik, Form, FormikHelpers } from "formik"; import { BackButton } from "./BackButton"; import GlobalApi from "~/logic/api/global"; import useHarkState from "~/logic/state/hark"; import _ from "lodash"; +import {AsyncButton} from "~/views/components/AsyncButton"; interface FormSchema { mentions: boolean; @@ -44,12 +44,11 @@ export function NotificationPreferences(props: { await Promise.all(promises); actions.setStatus({ success: null }); - actions.resetForm({ values: initialValues }); } catch (e) { console.error(e); actions.setStatus({ error: e.message }); } - }, [api]); + }, [api, graphConfig, dnd]); return ( <> @@ -64,7 +63,7 @@ export function NotificationPreferences(props: { messaging - +
+ + Save + -
+ );