@@ -59,6 +59,11 @@ import { nftBurnerUserCountQueryKey } from "@/hooks/nft-burner/useNFTBurnerUserC
5959import { collectionStatsQueryKey } from "@/hooks/useCollectionStats" ;
6060import { nftsQueryKey } from "@/hooks/useNFTs" ;
6161import { getKeplrSigningCosmWasmClient } from "@/networks/signer" ;
62+ import {
63+ fontRegular10 ,
64+ fontRegular12 ,
65+ fontRegular14 ,
66+ } from "@/utils/style/fonts" ;
6267
6368// NOTE: we put content in a memoized component to only rerender the container when the window width changes
6469
@@ -186,10 +191,7 @@ const NFTViewContent: React.FC<{
186191 } }
187192 />
188193 < BrandText
189- style = { {
190- fontSize : 14 ,
191- marginBottom : 12 ,
192- } }
194+ style = { [ fontRegular14 , { marginBottom : 12 } ] }
193195 ellipsizeMode = "tail"
194196 numberOfLines = { 1 }
195197 >
@@ -203,19 +205,12 @@ const NFTViewContent: React.FC<{
203205 } }
204206 >
205207 < View
206- style = { {
207- flexDirection : "row" ,
208- alignItems : "center" ,
209- flex : 1 ,
210- } }
208+ style = { { flexDirection : "row" , alignItems : "center" , flex : 1 } }
211209 >
212210 < NetworkIcon size = { 12 } networkId = { nft . networkId } />
213211 < BrandText
214212 numberOfLines = { 1 }
215- style = { {
216- fontSize : 12 ,
217- marginLeft : layout . spacing_x1 ,
218- } }
213+ style = { [ fontRegular12 , { marginLeft : layout . spacing_x1 } ] }
219214 >
220215 { nft . collectionName }
221216 </ BrandText >
@@ -269,20 +264,10 @@ const NFTViewHeader: React.FC<{
269264 params : { id : nft . ownerId } ,
270265 } }
271266 >
272- < BrandText
273- style = { {
274- fontSize : 10 ,
275- color : neutral77 ,
276- } }
277- >
267+ < BrandText style = { [ fontRegular10 , { color : neutral77 } ] } >
278268 Owned by
279269 </ BrandText >
280- < BrandText
281- style = { {
282- fontSize : 12 ,
283- lineHeight : 16 ,
284- } }
285- >
270+ < BrandText style = { fontRegular12 } >
286271 { userInfo . metadata ?. tokenId ||
287272 shortUserAddressFromID ( nft . ownerId , 10 ) }
288273 </ BrandText >
@@ -463,22 +448,13 @@ const NFTViewFooter: React.FC<{ nft: NFT; localSelected: boolean }> = memo(
463448 />
464449 { /* FIXME: should come from price denom */ }
465450 < BrandText
466- style = { {
467- fontSize : 12 ,
468- color : neutral77 ,
469- marginLeft : 10 ,
470- } }
451+ style = { [ fontRegular12 , { color : neutral77 , marginLeft : 10 } ] }
471452 >
472453 Price
473454 </ BrandText >
474455 </ >
475456 ) : (
476- < BrandText
477- style = { {
478- fontSize : 12 ,
479- color : neutral77 ,
480- } }
481- >
457+ < BrandText style = { [ fontRegular12 , { color : neutral77 } ] } >
482458 Not listed
483459 </ BrandText >
484460 ) }
0 commit comments