Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Added new metrics event nft image viewed #2587

Merged
merged 3 commits into from
Aug 4, 2023

Conversation

jorbuedo
Copy link
Contributor

@jorbuedo jorbuedo commented Aug 4, 2023

New event added

Relates to YOMO-617

image

@jorbuedo jorbuedo added the chore label Aug 4, 2023
@jorbuedo jorbuedo self-assigned this Aug 4, 2023

React.useEffect(() => {
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
if (!nft?.id) return
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use if(!isString(nft?.id)) to avoid eslint-disable

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MichalSzorad I've migrated to our useParams here (a62fc0d)

@stackchain stackchain added this to the 4.20.0 milestone Aug 4, 2023
@stackchain stackchain changed the title Adds nft img viewed chore: Added new metrics event nft image viewed Aug 4, 2023
export const NftDetailsImage = () => {
const {id} = useRoute<RouteProp<NftRoutes, 'nft-details'>>().params
const {id} = useParams<Params>(isParams)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jorbuedo we have useParams which takes a ts safe guard fn, since .params are unsafe.

@stackchain stackchain merged commit ff11288 into develop Aug 4, 2023
@stackchain stackchain deleted the chore-add-nft-img-analytics branch August 4, 2023 22:44
@stackchain stackchain mentioned this pull request Aug 15, 2023
71 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants