Skip to content

Commit fe9cda8

Browse files
committed
chore(notifications): Make default notification setting for new accounts - Weekly - instead of Monthly.
1 parent c3607a9 commit fe9cda8

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

components/EditProfilePage/ProfileSettingsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function ProfileSettingsModal({
8282

8383
const handleToggleNotifications = async () => {
8484
if (notifications === "None") {
85-
setNotifications("Monthly")
85+
setNotifications("Weekly")
8686
} else {
8787
setNotifications("None")
8888
}

components/Newsfeed/Newsfeed.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,14 @@ export default function Newsfeed() {
144144
const [settingsModal, setSettingsModal] = useState<"show" | null>(null)
145145
const [notifications, setNotifications] = useState<
146146
"Weekly" | "Monthly" | "None"
147-
>(notificationFrequency ? notificationFrequency : "Monthly")
147+
>(notificationFrequency ? notificationFrequency : "Weekly")
148148
const [isProfilePublic, setIsProfilePublic] = useState<false | true>(
149149
isPublic ? isPublic : false
150150
)
151151

152152
const onSettingsModalOpen = () => {
153153
setSettingsModal("show")
154-
setNotifications(
155-
notificationFrequency ? notificationFrequency : "Monthly"
156-
)
154+
setNotifications(notificationFrequency ? notificationFrequency : "Weekly")
157155
setIsProfilePublic(isPublic ? isPublic : false)
158156
}
159157

components/auth/hooks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function useCreateUserWithEmailAndPassword(isOrg: boolean) {
7676
setProfile(credentials.user.uid, {
7777
fullName,
7878
orgCategories: categories,
79-
notificationFrequency: "Monthly",
79+
notificationFrequency: "Weekly",
8080
email: credentials.user.email
8181
}),
8282
sendEmailVerification(credentials.user)
@@ -85,7 +85,7 @@ export function useCreateUserWithEmailAndPassword(isOrg: boolean) {
8585
await Promise.all([
8686
setProfile(credentials.user.uid, {
8787
fullName,
88-
notificationFrequency: "Monthly",
88+
notificationFrequency: "Weekly",
8989
email: credentials.user.email,
9090
public: true
9191
}),
@@ -136,7 +136,7 @@ export function useSignInWithPopUp() {
136136
await Promise.all([
137137
setProfile(credentials.user.uid, {
138138
fullName: credentials.user.displayName ?? "New User",
139-
notificationFrequency: "Monthly",
139+
notificationFrequency: "Weekly",
140140
email: credentials.user.email,
141141
public: true
142142
})

0 commit comments

Comments
 (0)