1
- import Link from "next/link"
2
1
import { useTranslation } from "next-i18next"
3
2
import type { ComponentType , ReactNode , SVGProps } from "react"
4
3
5
- import { ButtonLink } from "@/components/Buttons"
6
4
import {
7
5
CautionProductGlyphIcon ,
8
6
GreenCheckProductGlyphIcon ,
9
7
UnknownProductGlyphIcon ,
10
8
WarningProductGlyphIcon ,
11
9
} from "@/components/icons/staking"
12
10
import SocialListItem from "@/components/SocialListItem"
11
+ import { ButtonLink } from "@/components/ui/buttons/Button"
12
+ import Link from "@/components/ui/Link"
13
13
14
14
import { FlagType , Product } from "./types"
15
15
@@ -26,7 +26,7 @@ const getIconFromName = (
26
26
const Status = ( { status } : { status : FlagType | undefined } ) => {
27
27
if ( ! status ) return null
28
28
29
- const styles = "mr -2 w-5 h -5"
29
+ const styles = "me -2 size -5"
30
30
switch ( status ) {
31
31
case "green-check" :
32
32
return < GreenCheckProductGlyphIcon className = { styles } />
@@ -187,7 +187,7 @@ export const StakingProductCard = ({
187
187
) ) }
188
188
</ div >
189
189
< div className = "p-6 py-0" >
190
- < ul className = "gap=3 m-0" >
190
+ < ul className = "m-0 gap-3 " >
191
191
{ data . map ( ( { label, status } , idx ) => (
192
192
< li
193
193
key = { idx }
@@ -199,34 +199,27 @@ export const StakingProductCard = ({
199
199
) ) }
200
200
</ ul >
201
201
</ div >
202
- < div className = "mt-auto p-6" >
202
+ < div className = "mt-auto flex flex-col gap-3 p-6" >
203
203
< ButtonLink
204
204
href = { url }
205
205
customEventOptions = { matomo }
206
- width = "100% "
207
- variant = { "outline-color" }
208
- isSecondary = { true }
206
+ className = "w-full "
207
+ variant = "outline"
208
+ isSecondary
209
209
>
210
210
{ t ( "page-staking-products-get-started" ) }
211
211
</ ButtonLink >
212
- < div className = "flex h-10 items-center justify-center" >
212
+ < div className = "flex h-7.5 items-center justify-center" >
213
213
{ validSocials . length > 0 && (
214
- < p className = "mr-2 text-sm text-body-medium" >
214
+ < p className = "me-2 text-body-medium" >
215
215
{ t ( "page-staking-products-follow" ) }
216
216
</ p >
217
217
) }
218
218
219
219
{ 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 >
227
221
< SocialListItem
228
- color = "body.base"
229
- boxSize = { 8 }
222
+ className = "size-8 text-body"
230
223
socialIcon = {
231
224
platform as
232
225
| "twitter"
0 commit comments