Skip to content

Commit 395f365

Browse files
committed
feat: migrate rest to shad/tw, match to DS
1 parent 967ae92 commit 395f365

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

src/components/Staking/StakingProductsCardGrid/StakingProductCard.tsx

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import Link from "next/link"
21
import { useTranslation } from "next-i18next"
32
import type { ComponentType, ReactNode, SVGProps } from "react"
43

5-
import { ButtonLink } from "@/components/Buttons"
64
import {
75
CautionProductGlyphIcon,
86
GreenCheckProductGlyphIcon,
97
UnknownProductGlyphIcon,
108
WarningProductGlyphIcon,
119
} from "@/components/icons/staking"
1210
import SocialListItem from "@/components/SocialListItem"
11+
import { ButtonLink } from "@/components/ui/buttons/Button"
12+
import Link from "@/components/ui/Link"
1313

1414
import { FlagType, Product } from "./types"
1515

@@ -26,7 +26,7 @@ const getIconFromName = (
2626
const Status = ({ status }: { status: FlagType | undefined }) => {
2727
if (!status) return null
2828

29-
const styles = "mr-2 w-5 h-5"
29+
const styles = "me-2 size-5"
3030
switch (status) {
3131
case "green-check":
3232
return <GreenCheckProductGlyphIcon className={styles} />
@@ -187,7 +187,7 @@ export const StakingProductCard = ({
187187
))}
188188
</div>
189189
<div className="p-6 py-0">
190-
<ul className="gap=3 m-0">
190+
<ul className="m-0 gap-3">
191191
{data.map(({ label, status }, idx) => (
192192
<li
193193
key={idx}
@@ -199,34 +199,27 @@ export const StakingProductCard = ({
199199
))}
200200
</ul>
201201
</div>
202-
<div className="mt-auto p-6">
202+
<div className="mt-auto flex flex-col gap-3 p-6">
203203
<ButtonLink
204204
href={url}
205205
customEventOptions={matomo}
206-
width="100%"
207-
variant={"outline-color"}
208-
isSecondary={true}
206+
className="w-full"
207+
variant="outline"
208+
isSecondary
209209
>
210210
{t("page-staking-products-get-started")}
211211
</ButtonLink>
212-
<div className="flex h-10 items-center justify-center">
212+
<div className="flex h-7.5 items-center justify-center">
213213
{validSocials.length > 0 && (
214-
<p className="mr-2 text-sm text-body-medium">
214+
<p className="me-2 text-body-medium">
215215
{t("page-staking-products-follow")}
216216
</p>
217217
)}
218218

219219
{validSocials.map(([platform, url], idx) => (
220-
<Link
221-
key={idx}
222-
href={url}
223-
passHref
224-
target="_blank"
225-
rel="noopener noreferrer"
226-
>
220+
<Link key={idx} href={url} hideArrow>
227221
<SocialListItem
228-
color="body.base"
229-
boxSize={8}
222+
className="size-8 text-body"
230223
socialIcon={
231224
platform as
232225
| "twitter"

0 commit comments

Comments
 (0)