Skip to content

Commit

Permalink
v1.4.13
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Apr 11, 2024
1 parent 64875b6 commit 1cc140a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "safe-homepage",
"homepage": "https://github.com/safe-global/safe-homepage",
"version": "1.4.12",
"version": "1.4.13",
"scripts": {
"build": "next build && next export",
"lint": "tsc && next lint",
Expand Down
20 changes: 10 additions & 10 deletions src/components/Pressroom/AboutUs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ import { PressroomIds } from '@/components/Pressroom/ContentsNavigation'
import { formatValue } from '@/lib/formatValue'
import { Box, Typography } from '@mui/material'

const TOTAL_ASSETS_STORED = 'https://dune.com/queries/2893829/4821383'
// TODO: Remove this temporary fallback value when the Dune query is fixed
const TOTAL_ASSETS_FALLBACK = '120B'
// TODO: Remove the commented code when the Dune query is fixed
// const TOTAL_ASSETS_STORED = 'https://dune.com/queries/2893829/4821383'
const TOTAL_ASSETS_FALLBACK = '$100B+'

const AboutUs = ({ totalAssets }: { totalAssets: number }) => {
const totalAssetsStr = `~$${totalAssets ? formatValue(totalAssets) : TOTAL_ASSETS_FALLBACK}`
const totalAssetsLink = (
<a href={TOTAL_ASSETS_STORED} target="_blank" rel="noreferrer">
<b>{totalAssetsStr}</b>
</a>
)
const totalAssetsStr = totalAssets ? `~$${formatValue(totalAssets)}` : TOTAL_ASSETS_FALLBACK
// const totalAssetsLink = (
// <a href={TOTAL_ASSETS_STORED} target="_blank" rel="noreferrer">
// <b>{totalAssetsStr}</b>
// </a>
// )

return (
<Box mt="140px" id={PressroomIds.ABOUT_US} width={{ xs: '100%', md: 9 / 12 }}>
<Typography variant="caption">About us</Typography>
<Typography variant="h2">
<i>Safe</i> is an onchain asset custody protocol, securing <>{totalAssetsLink}</> in assets today.
<i>Safe</i> is an onchain asset custody protocol, securing <>{totalAssetsStr}</> in assets today.
</Typography>
</Box>
)
Expand Down
4 changes: 2 additions & 2 deletions src/content/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
}
},
{
"title": "$124B",
"title": "$100B+",
"text": "Total assets stored",
"link": {
"href": "https://dune.com/queries/2893829/4821383"
"href": ""
}
},
{
Expand Down

0 comments on commit 1cc140a

Please sign in to comment.