Skip to content

Commit c8d407a

Browse files
committed
fix: staking Svg icon sizes; update to tailwind
1 parent 9169f0b commit c8d407a

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/components/Staking/StakingProductsCardGrid/StakingProductCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const StakingProductCard = ({
162162
return (
163163
<div className="rounded-base hover:scale-101 flex flex-col bg-background-highlight transition-transform">
164164
<div className="flex max-h-24 space-x-3 p-6">
165-
{!!Svg && <Svg className="rounded-md" width={48} height={48} />}
165+
{!!Svg && <Svg className="size-12" />}
166166
<div>
167167
<h4 className="text-xl">{name}</h4>
168168
{typeof minEth !== "undefined" && (

src/hooks/useStakingConsiderations.ts renamed to src/hooks/useStakingConsiderations.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { ElementType, useState } from "react"
22
import { useTranslation } from "next-i18next"
3-
import { chakra } from "@chakra-ui/react"
43

54
import type { StakingPage } from "@/lib/types"
65

@@ -403,19 +402,8 @@ export const useStakingConsiderations = ({
403402
}
404403

405404
const indicatorSvgStyle = { width: 20, height: "auto" }
406-
const StyledSvg = Svg
407-
? chakra(Svg, {
408-
baseStyle: {
409-
path: {
410-
fill: "text",
411-
},
412-
},
413-
})
414-
: chakra("div", {
415-
baseStyle: {
416-
display: "none",
417-
},
418-
})
405+
const StyledSvg = () =>
406+
Svg ? <Svg className="size-[4.5rem]" /> : <div className="hidden" />
419407

420408
return {
421409
title,

0 commit comments

Comments
 (0)