Compare commits

..

1 Commits

Author SHA1 Message Date
dbd0d0c7b7 fix: added missing dependency lodash 2025-05-12 17:05:16 +02:00
2 changed files with 5 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
// client helpers
'use-client'
import { useAtom } from 'jotai'
import { useSession } from "next-auth/react"
import { User, UserId } from './types'
import { useAtom } from 'jotai'
import { usersAtom } from './atoms'
import { checkPermission } from './utils'
@@ -13,7 +14,7 @@ export function useHelpers() {
const currentUser = usersData.users.find((u) => u.id === currentUserId)
// detect iOS: https://stackoverflow.com/a/9039885
function iOS() {
return typeof navigator !== "undefined" && ([
return [
'iPad Simulator',
'iPhone Simulator',
'iPod Simulator',
@@ -22,7 +23,7 @@ export function useHelpers() {
'iPod',
].includes(navigator.platform)
// iPad on iOS 13 detection
|| (navigator.userAgent.includes("Mac") && "ontouchend" in document))
|| (navigator.userAgent.includes("Mac") && "ontouchend" in document)
}
return {

View File

@@ -44,6 +44,7 @@
"js-confetti": "^0.12.0",
"linkify": "^0.2.1",
"linkify-react": "^4.2.0",
"lodash": "^4.17.21",
"lucide-react": "^0.469.0",
"luxon": "^3.5.0",
"next": "15.2.3",