mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-18 06:54:15 +00:00
Added onPageMount hook
This commit is contained in:
parent
be91d477f8
commit
c0356a1ff0
@ -3,6 +3,8 @@ import { Runtime } from "@ragestudio/vessel"
|
|||||||
import * as Router from "@ragestudio/vessel/router"
|
import * as Router from "@ragestudio/vessel/router"
|
||||||
import routesDeclarations from "@config/routes"
|
import routesDeclarations from "@config/routes"
|
||||||
|
|
||||||
|
import onPageMount from "@hooks/onPageMount"
|
||||||
|
|
||||||
import { Helmet } from "react-helmet"
|
import { Helmet } from "react-helmet"
|
||||||
import * as Sentry from "@sentry/browser"
|
import * as Sentry from "@sentry/browser"
|
||||||
import { invoke } from "@tauri-apps/api/tauri"
|
import { invoke } from "@tauri-apps/api/tauri"
|
||||||
@ -130,6 +132,7 @@ class ComtyApp extends React.Component {
|
|||||||
<Router.Render
|
<Router.Render
|
||||||
declarations={routesDeclarations}
|
declarations={routesDeclarations}
|
||||||
staticRenders={ComtyApp.staticRenders}
|
staticRenders={ComtyApp.staticRenders}
|
||||||
|
onPageMount={onPageMount}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Layout>
|
</Layout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user