@umituz/react-native-notifications 1.3.16 → 1.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/{infrastructure → domains/quietHours/infrastructure}/hooks/useQuietHoursActions.ts +2 -2
- package/src/{presentation → domains/quietHours/presentation}/components/QuietHoursCard.tsx +2 -1
- package/src/index.ts +3 -3
- package/src/presentation/screens/NotificationSettingsScreen.tsx +1 -1
package/package.json
CHANGED
package/src/{infrastructure → domains/quietHours/infrastructure}/hooks/useQuietHoursActions.ts
RENAMED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
|
-
import { useRemindersStore, useQuietHours } from '
|
|
8
|
-
import type { QuietHoursConfig } from '
|
|
7
|
+
import { useRemindersStore, useQuietHours } from '../../../reminders/infrastructure/storage/RemindersStore';
|
|
8
|
+
import type { QuietHoursConfig } from '../../../../infrastructure/services/types';
|
|
9
9
|
|
|
10
10
|
export const useQuietHoursActions = () => {
|
|
11
11
|
const quietHours = useQuietHours();
|
|
@@ -8,7 +8,8 @@ import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
|
8
8
|
import { AtomicText, AtomicIcon, AtomicCard } from '@umituz/react-native-design-system';
|
|
9
9
|
import { Switch } from 'react-native';
|
|
10
10
|
import { useAppDesignTokens } from '@umituz/react-native-design-system-theme';
|
|
11
|
-
import
|
|
11
|
+
import { SettingRow } from '../../../../presentation/components/SettingRow';
|
|
12
|
+
import type { QuietHoursConfig, QuietHoursTranslations } from '../../../../infrastructure/services/types';
|
|
12
13
|
|
|
13
14
|
export interface QuietHoursCardProps {
|
|
14
15
|
config: QuietHoursConfig;
|
package/src/index.ts
CHANGED
|
@@ -73,7 +73,7 @@ export {
|
|
|
73
73
|
|
|
74
74
|
export { useNotificationSettings } from './infrastructure/hooks/useNotificationSettings';
|
|
75
75
|
export { useReminderActions } from './domains/reminders/infrastructure/hooks/useReminderActions';
|
|
76
|
-
export { useQuietHoursActions } from './infrastructure/hooks/useQuietHoursActions';
|
|
76
|
+
export { useQuietHoursActions } from './domains/quietHours/infrastructure/hooks/useQuietHoursActions';
|
|
77
77
|
export { useNotificationSettingsUI } from './presentation/hooks/useNotificationSettingsUI';
|
|
78
78
|
|
|
79
79
|
// ============================================================================
|
|
@@ -114,8 +114,8 @@ export type { ReminderFormProps, ReminderFormTranslations } from './domains/remi
|
|
|
114
114
|
export { FormButton } from './domains/reminders/presentation/components/FormButton';
|
|
115
115
|
export type { FormButtonProps } from './domains/reminders/presentation/components/FormButton';
|
|
116
116
|
|
|
117
|
-
export { QuietHoursCard } from './presentation/components/QuietHoursCard';
|
|
118
|
-
export type { QuietHoursCardProps } from './presentation/components/QuietHoursCard';
|
|
117
|
+
export { QuietHoursCard } from './domains/quietHours/presentation/components/QuietHoursCard';
|
|
118
|
+
export type { QuietHoursCardProps } from './domains/quietHours/presentation/components/QuietHoursCard';
|
|
119
119
|
|
|
120
120
|
export { SettingRow } from './presentation/components/SettingRow';
|
|
121
121
|
export type { SettingRowProps } from './presentation/components/SettingRow';
|
|
@@ -7,7 +7,7 @@ import React, { useMemo } from 'react';
|
|
|
7
7
|
import { View, StyleSheet, ActivityIndicator, TouchableOpacity } from 'react-native';
|
|
8
8
|
import { AtomicText, AtomicIcon, AtomicCard, ScreenLayout } from '@umituz/react-native-design-system';
|
|
9
9
|
import { useAppDesignTokens } from '@umituz/react-native-design-system-theme';
|
|
10
|
-
import { QuietHoursCard } from '
|
|
10
|
+
import { QuietHoursCard } from '../../domains/quietHours/presentation/components/QuietHoursCard';
|
|
11
11
|
import { SettingRow } from '../components/SettingRow';
|
|
12
12
|
import { useNotificationSettingsUI } from '../hooks/useNotificationSettingsUI';
|
|
13
13
|
import { useReminders } from '../../domains/reminders/infrastructure/storage/RemindersStore';
|