File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import { ChildOnlyProp } from "@/lib/types"
7
7
import { Flex } from "@/components/ui/flex"
8
8
import InlineLink from "@/components/ui/Link"
9
9
10
+ import { cn } from "@/lib/utils/cn"
11
+
10
12
import { isMobile } from "../lib/utils/isMobile"
11
13
12
14
import Emoji from "./Emoji"
@@ -112,7 +114,13 @@ const GridItem = ({
112
114
< Flex
113
115
id = { `type-${ index } ` }
114
116
onClick = { ( ) => handleClick ( ) }
115
- className = { `flex-col ${ isOpen ? `${ color } col-start-1 row-start-1 row-end-[span_3] cursor-auto justify-start text-gray-600 transition sm:flex-col` : "col-start-auto row-start-auto row-end-auto cursor-pointer justify-between bg-background transition-transform duration-500 hover:skew-x-[-5deg] hover:bg-background-highlight sm:flex-row" } items-center border border-body p-6 hover:shadow-table-box lg:flex-col lg:items-start lg:justify-start` }
117
+ className = { cn (
118
+ "flex-col" ,
119
+ isOpen
120
+ ? `${ color } col-start-1 row-start-1 row-end-[span_3] cursor-auto justify-start text-gray-600 transition sm:flex-col`
121
+ : "col-start-auto row-start-auto row-end-auto cursor-pointer justify-between bg-background transition-transform duration-500 hover:skew-x-[-5deg] hover:bg-background-highlight sm:flex-row" ,
122
+ "items-center border border-body p-6 hover:shadow-table-box lg:flex-col lg:items-start lg:justify-start"
123
+ ) }
116
124
>
117
125
{ isOpen ? (
118
126
< Emoji className = "mb-8 text-8xl" text = { emoji } />
You can’t perform that action at this time.
0 commit comments