-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: wip: warable preview on l1 items (#1743)
* feat: wip: warable preview on l1 items * feat: fixed wearable preview * fix: removed if on thumbnail item * Update webapp/src/components/AssetImage/AssetImage.tsx Co-authored-by: Juanma Hidalgo <[email protected]> Signed-off-by: Florencia Barreto <[email protected]> * Update webapp/src/components/AssetImage/AssetImage.tsx Co-authored-by: Juanma Hidalgo <[email protected]> Signed-off-by: Florencia Barreto <[email protected]> * Update webapp/src/components/AssetImage/AssetImage.tsx Co-authored-by: Juanma Hidalgo <[email protected]> Signed-off-by: Florencia Barreto <[email protected]> --------- Signed-off-by: Florencia Barreto <[email protected]> Co-authored-by: Juanma Hidalgo <[email protected]>
- Loading branch information
1 parent
c779cdc
commit 8377a5e
Showing
2 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Item } from '@dcl/schemas' | ||
|
||
export const getEthereumItemUrn = (item: Item) => { | ||
let regex = /urn:decentraland:ethereum:collections-v1:[^/]+/ | ||
const match = item.thumbnail.match(regex) | ||
return match ? match[0] : '' | ||
} |