Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript committed Sep 20, 2024
1 parent d8c8847 commit 4f21bf5
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export const NotificationsDevScreen = () => {
useRequestPermissions()
useHandleNotification()
const {triggerTransactionReceived} = useNotifications()
const {data: receivedNotifications} = useReceivedNotificationEvents()

const handleOnTriggerTransactionReceived = () => {
triggerTransactionReceived({
Expand All @@ -168,6 +169,12 @@ export const NotificationsDevScreen = () => {
onPress={handleOnTriggerTransactionReceived}
/>

<View>
<Text>Received Notifications</Text>

<Text>{JSON.stringify(receivedNotifications)}</Text>
</View>

<Text style={{fontSize: 24}}>Settings</Text>

<NotificationSettings />
Expand All @@ -189,9 +196,9 @@ const NotificationSettings = () => {
setLocalConfig(newConfig)
}

const config = (localConfig || notificationsConfig) ?? null
const config = localConfig ?? notificationsConfig ?? null

if (!config) return null
if (config === null) return null

const handleOnUpdateTransactionReceivedConfig = (value: NotificationTypes.Config['TransactionReceived']) => {
handleSaveConfig({
Expand Down

0 comments on commit 4f21bf5

Please sign in to comment.