Skip to content

Commit

Permalink
fix lint and test
Browse files Browse the repository at this point in the history
  • Loading branch information
KillariDev committed Jan 2, 2024
1 parent c370ae5 commit 189c50a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
14 changes: 0 additions & 14 deletions src/pages/Landing/index.nonios.test.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/state/user/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,17 +206,6 @@ export function usePairAdder(): (pair: Pair) => void {
)
}

export function useHideBaseWalletBanner(): [boolean, () => void] {
const dispatch = useAppDispatch()
const hideBaseWalletBanner = useAppSelector((state) => state.user.hideBaseWalletBanner)

const toggleHideBaseWalletBanner = useCallback(() => {
dispatch(updateHideBaseWalletBanner({ hideBaseWalletBanner: true }))
}, [dispatch])

return [hideBaseWalletBanner, toggleHideBaseWalletBanner]
}

export function useUserDisabledUniswapX(): boolean {
return useAppSelector((state) => state.user.disabledUniswapX) ?? false
}
Expand Down
2 changes: 0 additions & 2 deletions src/utils/userAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ export const isMobile = type === 'mobile' || type === 'tablet'
const platform = parser.getOS().name
export const isIOS = platform === 'iOS'
export const isNonIOSPhone = !isIOS && type === 'mobile'

export const isMobileSafari = isMobile && isIOS && name?.toLowerCase().includes('safari')

0 comments on commit 189c50a

Please sign in to comment.