Skip to content

Commit 99a10e7

Browse files
author
Ruizhe Pang
committed
move variable(notificationVolume) to SystemSettingsState
1 parent 04e79d1 commit 99a10e7

File tree

4 files changed

+141
-36
lines changed

4 files changed

+141
-36
lines changed

src/renderer/__mocks__/state-mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ const mockNotificationSettings: NotificationSettingsState = {
9393
markAsDoneOnOpen: false,
9494
markAsDoneOnUnsubscribe: false,
9595
delayNotificationState: false,
96-
notificationVolume: 20,
9796
};
9897

9998
const mockSystemSettings: SystemSettingsState = {
@@ -104,6 +103,7 @@ const mockSystemSettings: SystemSettingsState = {
104103
playSound: true,
105104
useAlternateIdleIcon: false,
106105
openAtStartup: false,
106+
notificationVolume: 20,
107107
};
108108

109109
const mockFilters: FilterSettingsState = {

src/renderer/context/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ const defaultNotificationSettings: NotificationSettingsState = {
8585
markAsDoneOnOpen: false,
8686
markAsDoneOnUnsubscribe: false,
8787
delayNotificationState: false,
88-
notificationVolume: 20,
8988
};
9089

9190
const defaultSystemSettings: SystemSettingsState = {
@@ -96,6 +95,7 @@ const defaultSystemSettings: SystemSettingsState = {
9695
playSound: true,
9796
useAlternateIdleIcon: false,
9897
openAtStartup: false,
98+
notificationVolume: 20,
9999
};
100100

101101
export const defaultFilters: FilterSettingsState = {

src/renderer/routes/__snapshots__/Settings.test.tsx.snap

Lines changed: 138 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export interface NotificationSettingsState {
8181
markAsDoneOnOpen: boolean;
8282
markAsDoneOnUnsubscribe: boolean;
8383
delayNotificationState: boolean;
84-
notificationVolume: number;
8584
}
8685

8786
export interface SystemSettingsState {
@@ -92,6 +91,7 @@ export interface SystemSettingsState {
9291
useAlternateIdleIcon: boolean;
9392
playSound: boolean;
9493
openAtStartup: boolean;
94+
notificationVolume: number;
9595
}
9696

9797
export interface FilterSettingsState {

0 commit comments

Comments
 (0)