Skip to content

Commit 4071c5e

Browse files
committed
use cn function
1 parent e30e53f commit 4071c5e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/StablecoinBoxGrid.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { ChildOnlyProp } from "@/lib/types"
77
import { Flex } from "@/components/ui/flex"
88
import InlineLink from "@/components/ui/Link"
99

10+
import { cn } from "@/lib/utils/cn"
11+
1012
import { isMobile } from "../lib/utils/isMobile"
1113

1214
import Emoji from "./Emoji"
@@ -112,7 +114,13 @@ const GridItem = ({
112114
<Flex
113115
id={`type-${index}`}
114116
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+
)}
116124
>
117125
{isOpen ? (
118126
<Emoji className="mb-8 text-8xl" text={emoji} />

0 commit comments

Comments
 (0)