@@ -137,7 +137,7 @@ export function Safety() {
137
137
name = { formatMessage ( messages . nodeApp ) }
138
138
description = { formatMessage ( messages . nodeAppDescription ) }
139
139
href = "/use/node-app"
140
- ctaText = { formatMessage ( messages . nodeAppLink ) }
140
+ linkText = { formatMessage ( messages . nodeAppLink ) }
141
141
imageSrc = { nodeAppImage }
142
142
/>
143
143
</ GridItem >
@@ -147,7 +147,7 @@ export function Safety() {
147
147
name = { formatMessage ( messages . oreoWallet ) }
148
148
description = { formatMessage ( messages . oreoWalletDescription ) }
149
149
href = "https://oreowallet.com/"
150
- ctaText = { formatMessage ( messages . oreoWalletLink ) }
150
+ linkText = { formatMessage ( messages . oreoWalletLink ) }
151
151
imageSrc = { oreoWalletImage }
152
152
/>
153
153
</ GridItem >
@@ -180,8 +180,8 @@ export function Safety() {
180
180
< ItemCard
181
181
name = { formatMessage ( messages . chainPortBridge ) }
182
182
description = { formatMessage ( messages . chainPortBridgeDescription ) }
183
- // href="https://app.chainport.io/?from=ETHEREUM&to=IRONFISH"
184
- ctaText = "COMING SOON"
183
+ href = "https://app.chainport.io/?from=ETHEREUM& to = IRONFISH "
184
+ linkText = { formatMessage ( messages . chainPortBridgeLink ) }
185
185
imageSrc = { chainportImage }
186
186
imageContainerProps = { {
187
187
paddingTop : {
@@ -200,8 +200,8 @@ export function Safety() {
200
200
< ItemCard
201
201
name = "Bridge.IronFish"
202
202
description = { formatMessage ( messages . ironFishBridgeDescription ) }
203
- // href="https://bridge.ironfish.network/"
204
- ctaText = "COMING SOON"
203
+ href = "https://bridge.ironfish.network/"
204
+ linkText = { formatMessage ( messages . ironFishBridgeLink ) }
205
205
imageSrc = { bridgeIronFishImage }
206
206
imageContainerProps = { {
207
207
padding : {
@@ -257,8 +257,8 @@ function FancyLink({
257
257
type ItemCardProps = {
258
258
name : string ;
259
259
description : string ;
260
- href ? : string ;
261
- ctaText : string ;
260
+ href : string ;
261
+ linkText : string ;
262
262
imageSrc : StaticImageData ;
263
263
imageContainerProps ?: ComponentProps < typeof HStack > ;
264
264
} & Omit < ShadowBoxProps , "children" > ;
@@ -267,24 +267,17 @@ function ItemCard({
267
267
name,
268
268
description,
269
269
href,
270
- ctaText ,
270
+ linkText ,
271
271
imageSrc,
272
272
imageContainerProps,
273
273
...rest
274
274
} : ItemCardProps ) {
275
- const isLink = ! ! href ;
276
- const linkProps = isLink
277
- ? {
278
- as : Link ,
279
- href,
280
- target : href . startsWith ( "http" ) ? "_blank" : undefined ,
281
- rel : href . startsWith ( "http" ) ? "noreferrer" : undefined ,
282
- }
283
- : null ;
284
-
285
275
return (
286
276
< ShadowBox
287
- { ...linkProps }
277
+ as = { Link }
278
+ href = { href }
279
+ target = { href . startsWith ( "http" ) ? "_blank" : undefined }
280
+ rel = { href . startsWith ( "http" ) ? "noreferrer" : undefined }
288
281
bg = "#242424"
289
282
borderColor = "#3B3B3B"
290
283
shadowColor = "#242424"
@@ -312,21 +305,13 @@ function ItemCard({
312
305
} }
313
306
{ ...rest }
314
307
>
315
- < Text mb = { 8 } as = "h3" textStyle = "h4" color = "white" >
308
+ < Text as = "h3" textStyle = "h4" color = "white" mb = { 8 } >
316
309
{ name }
317
310
</ Text >
318
311
< Text color = "white" textStyle = "md" mb = { 8 } >
319
312
{ description }
320
313
</ Text >
321
- { isLink ? (
322
- < FancyLink color = "pink.400" > { ctaText } </ FancyLink >
323
- ) : (
324
- < Box mb = { 8 } bg = "#2F3A1F" borderRadius = "4px" >
325
- < Text px = { 6 } py = { 2 } color = "#C7F182" >
326
- { ctaText }
327
- </ Text >
328
- </ Box >
329
- ) }
314
+ < FancyLink color = "pink.400" > { linkText } </ FancyLink >
330
315
331
316
< HStack flexGrow = { 1 } alignItems = "flex-end" { ...imageContainerProps } >
332
317
< Image src = { imageSrc } alt = { name } />
0 commit comments