-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ add missing Assets.pageViewed event
- Loading branch information
1 parent
5105742
commit 29a25d5
Showing
1 changed file
with
13 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import type { NextPage } from "next"; | ||
|
||
import { AssetsInfoTable } from "~/components/table/asset-info"; | ||
import { EventName } from "~/config"; | ||
import { useAmplitudeAnalytics } from "~/hooks"; | ||
|
||
const Assets: NextPage = () => ( | ||
<main className="mx-auto max-w-container p-8 pt-4 md:p-4"> | ||
<AssetsInfoTable tableTopPadding={16} /> | ||
</main> | ||
); | ||
const Assets: NextPage = () => { | ||
useAmplitudeAnalytics({ | ||
onLoadEvent: [EventName.Assets.pageViewed], | ||
}); | ||
|
||
return ( | ||
<main className="mx-auto max-w-container p-8 pt-4 md:p-4"> | ||
<AssetsInfoTable tableTopPadding={16} /> | ||
</main> | ||
); | ||
}; | ||
|
||
export default Assets; |