Skip to content

Commit 3b7933e

Browse files
committed
RE1-T88 Fixing build
1 parent 9511ac7 commit 3b7933e

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

src/components/push-notification/push-notification-status.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ import { usePushNotifications } from '@/services/push-notification';
77
import { useCoreStore } from '@/stores/app/core-store';
88

99
export function PushNotificationStatus() {
10-
const { pushToken, sendTestNotification } = usePushNotifications();
10+
const { pushToken } = usePushNotifications();
1111
const activeUnitId = useCoreStore((state) => state.activeUnitId);
1212
const activeUnit = useCoreStore((state) => state.activeUnit);
1313

14-
const handleTestNotification = () => {
15-
sendTestNotification();
16-
};
17-
1814
return (
1915
<Box className="my-2 rounded-md border border-gray-300 p-4">
2016
<Text className="mb-2 font-bold">Push Notification Status</Text>
@@ -28,12 +24,6 @@ export function PushNotificationStatus() {
2824
<Text className="text-sm text-gray-700">Push Token: {pushToken ? `${pushToken.substring(0, 20)}...` : 'Not registered'}</Text>
2925
<Text className={`text-sm ${pushToken ? 'text-green-700' : 'text-red-700'}`}>Status: {pushToken ? 'Registered' : 'Not Registered'}</Text>
3026
</Box>
31-
32-
<Box className="mt-4">
33-
<Button className="bg-blue-600 text-white" onPress={handleTestNotification} disabled={!pushToken}>
34-
Send Test Notification
35-
</Button>
36-
</Box>
3727
</Box>
3828
);
3929
}

src/services/push-notification.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,5 @@ export const usePushNotifications = () => {
294294

295295
return {
296296
pushToken: pushNotificationService.getPushToken(),
297-
sendTestNotification: () => pushNotificationService.sendTestNotification(),
298297
};
299298
};

0 commit comments

Comments
 (0)