Skip to content

Commit e07c63c

Browse files
committed
only display sheet panel in mobile
1 parent fa9321c commit e07c63c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Trilemma/useTrilemma.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { useState } from "react"
22
import { useTranslation } from "next-i18next"
33

4+
import { isMobile } from "@/lib/utils/isMobile"
5+
46
import { CardProps } from "../Card"
57

68
/**
@@ -101,7 +103,7 @@ export const useTrilemma = () => {
101103
isSecure,
102104
isScalable,
103105
},
104-
mobileModalOpen: state.mobileModalOpen,
106+
mobileModalOpen: state.mobileModalOpen && isMobile(),
105107
handleClick,
106108
handleModalClose,
107109
cardDetail: {

0 commit comments

Comments
 (0)