Commit 884dee2d authored by Jack Short's avatar Jack Short Committed by GitHub

fix: pointing nft links to the right url hash (#4620)

parent 1f00c2a9
...@@ -134,7 +134,7 @@ export const MenuDropdown = () => { ...@@ -134,7 +134,7 @@ export const MenuDropdown = () => {
<Column gap="16"> <Column gap="16">
<Column paddingX="8" gap="4"> <Column paddingX="8" gap="4">
{nftFlag === NftVariant.Enabled && ( {nftFlag === NftVariant.Enabled && (
<PrimaryMenuRow to="/nft/sell" close={toggleOpen}> <PrimaryMenuRow to="/nfts/sell" close={toggleOpen}>
<Icon> <Icon>
<ThinTagIcon width={24} height={24} /> <ThinTagIcon width={24} height={24} />
</Icon> </Icon>
......
...@@ -38,7 +38,7 @@ const useCardContext = () => { ...@@ -38,7 +38,7 @@ const useCardContext = () => {
return context return context
} }
const baseHref = (asset: GenieAsset) => `/#/nft/asset/${asset.address}/${asset.tokenId}?origin=collection` const baseHref = (asset: GenieAsset) => `/#/nfts/asset/${asset.address}/${asset.tokenId}?origin=collection`
/* -------- ASSET CARD -------- */ /* -------- ASSET CARD -------- */
interface CardProps { interface CardProps {
......
...@@ -64,7 +64,7 @@ export const Traits = ({ ...@@ -64,7 +64,7 @@ export const Traits = ({
return ( return (
<a <a
key={`${item.trait_type}-${item.value}`} key={`${item.trait_type}-${item.value}`}
href={`#/nft/collection/${collectionAddress}?${params}`} href={`#/nfts/collection/${collectionAddress}?${params}`}
style={{ textDecoration: 'none' }} style={{ textDecoration: 'none' }}
> >
<Trait label={item.trait_type} value={item.value} /> <Trait label={item.trait_type} value={item.value} />
......
...@@ -233,8 +233,8 @@ export default function App() { ...@@ -233,8 +233,8 @@ export default function App() {
<> <>
<Route path="/nfts/collection/:contractAddress" element={<Collection />} /> <Route path="/nfts/collection/:contractAddress" element={<Collection />} />
<Route path="/nfts" element={<NftExplore />} /> <Route path="/nfts" element={<NftExplore />} />
<Route path="/nft/sell" element={<Sell />} /> <Route path="/nfts/sell" element={<Sell />} />
<Route path="/nft/asset/:contractAddress/:tokenId" element={<Asset />} /> <Route path="/nfts/asset/:contractAddress/:tokenId" element={<Asset />} />
</> </>
)} )}
</Routes> </Routes>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment