File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/components/Staking/StakingProductsCardGrid Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import SocialListItem from "@/components/SocialListItem"
11
11
import { ButtonLink } from "@/components/ui/buttons/Button"
12
12
import Link from "@/components/ui/Link"
13
13
14
+ import { cn } from "@/lib/utils/cn"
15
+
14
16
import { FlagType , Product } from "./types"
15
17
16
18
const getIconFromName = (
@@ -50,7 +52,12 @@ const StakingBadge = ({
50
52
const uiTypeColor = type === "ui"
51
53
return (
52
54
< span
53
- className = { `rounded-full ${ uiTypeColor ? "bg-success-light text-success dark:bg-warning-light dark:text-warning-dark" : "bg-primary-low-contrast" } px-2 py-1 text-xs normal-case ${ uiTypeColor ? "text-success" : "text-primary-high-contrast" } ` }
55
+ className = { cn (
56
+ "rounded-full px-2 py-1 text-xs normal-case" ,
57
+ uiTypeColor
58
+ ? "bg-success-light text-success dark:bg-success-dark dark:text-success-light"
59
+ : "bg-primary-low-contrast text-primary-high-contrast"
60
+ ) }
54
61
>
55
62
{ children }
56
63
</ span >
@@ -163,7 +170,7 @@ export const StakingProductCard = ({
163
170
< div className = "rounded-base hover:scale-101 flex flex-col bg-background-highlight transition-transform" >
164
171
< div className = "flex max-h-24 space-x-3 p-6" >
165
172
{ ! ! Svg && < Svg className = "size-12" /> }
166
- < div >
173
+ < div className = "flex flex-col justify-center" >
167
174
< h4 className = "text-xl" > { name } </ h4 >
168
175
{ typeof minEth !== "undefined" && (
169
176
< p className = "text-sm font-normal text-body-medium" >
You can’t perform that action at this time.
0 commit comments