Skip to content

Commit 434ccfc

Browse files
committed
refactor: resolve type errors
1 parent 2a1aa74 commit 434ccfc

File tree

2 files changed

+1
-66
lines changed

2 files changed

+1
-66
lines changed

frontend/stores/notifications/useNotificationsManagementStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const useNotificationsManagementStore = defineStore('notifications-manage
1010
const { fetch } = useCustomFetch()
1111
const settings = ref<NotificationSettings>(
1212
{
13+
clients: [],
1314
general_settings: {
1415
do_not_disturb_timestamp: 0,
1516
is_email_notifications_enabled: false,
@@ -26,7 +27,6 @@ export const useNotificationsManagementStore = defineStore('notifications-manage
2627
machine_storage_usage_threshold: 0.0,
2728
rocket_pool_max_collateral_threshold: 0,
2829
rocket_pool_min_collateral_threshold: 0,
29-
subscribed_clients: [],
3030
},
3131
networks: [ {
3232
chain_id: 0,

frontend/utils/mock.ts

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -438,68 +438,3 @@ export function simulateAPIresponseAboutNetworkList(): ApiDataResponse<
438438
}
439439
return result
440440
}
441-
442-
export function mockManageNotificationsGeneral(): InternalGetUserNotificationSettingsResponse {
443-
return {
444-
data: {
445-
clients: [
446-
{
447-
category: 'EL',
448-
id: 1,
449-
is_subscribed: true,
450-
name: 'EL Client 1',
451-
},
452-
{
453-
category: 'CL',
454-
id: 2,
455-
is_subscribed: false,
456-
name: 'CL Client 1',
457-
},
458-
{
459-
category: 'other',
460-
id: 3,
461-
is_subscribed: true,
462-
name: 'Other Clien 1',
463-
},
464-
{
465-
category: 'other',
466-
id: 4,
467-
is_subscribed: false,
468-
name: 'Other Clien 2',
469-
},
470-
],
471-
general_settings: {
472-
do_not_disturb_timestamp: 9000,
473-
is_email_notifications_enabled: false,
474-
is_machine_cpu_usage_subscribed: true,
475-
is_machine_memory_usage_subscribed: true,
476-
is_machine_offline_subscribed: true,
477-
is_machine_storage_usage_subscribed: true,
478-
is_push_notifications_enabled: true,
479-
is_rocket_pool_max_collateral_subscribed: true,
480-
is_rocket_pool_min_collateral_subscribed: true,
481-
is_rocket_pool_new_reward_round_subscribed: true,
482-
machine_cpu_usage_threshold: 40,
483-
machine_memory_usage_threshold: 50,
484-
machine_storage_usage_threshold: 80,
485-
rocket_pool_max_collateral_threshold: 29823,
486-
rocket_pool_min_collateral_threshold: 123,
487-
},
488-
networks: [],
489-
paired_devices: [
490-
{
491-
id: 'ABC-test',
492-
is_notifications_enabled: true,
493-
name: 'My device',
494-
paired_timestamp: 1620000000,
495-
},
496-
{
497-
id: 'DEF-test',
498-
is_notifications_enabled: false,
499-
name: 'My other device',
500-
paired_timestamp: 1700000000,
501-
},
502-
],
503-
},
504-
}
505-
}

0 commit comments

Comments
 (0)