Skip to content

Commit

Permalink
Test ToastType temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
narin committed Aug 6, 2024
1 parent 60143d5 commit 31b602c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/components/src/utils/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Namespace import is required. Destructuring causes error in va-mobile-app See #390.
import * as Tokens from '@department-of-veterans-affairs/mobile-tokens'
import { SnackbarType } from '../components/Snackbar/Snackbar'
import * as Toast from 'react-native-toast-notifications'
import * as Tokens from '@department-of-veterans-affairs/mobile-tokens'
// import { SnackbarType } from '../components/Snackbar/Snackbar'

import {
AccessibilityInfo,
Expand Down Expand Up @@ -84,6 +84,6 @@ export function PressableOpacityStyle(
return ({ pressed }) => [{ opacity: pressed ? 0.2 : 1 }]
}

export function useSnackbar(): SnackbarType {
export function useSnackbar(): Toast.ToastType {
return Toast.useToast()
}

0 comments on commit 31b602c

Please sign in to comment.