File tree Expand file tree Collapse file tree 4 files changed +7
-13
lines changed
components/organisms/RegisterAsDRepSteps Expand file tree Collapse file tree 4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 1- import { useCallback , useEffect , useState } from "react" ;
1+ import { useCallback , useState } from "react" ;
22import * as Sentry from "@sentry/react" ;
33
44import { Typography } from "@atoms" ;
@@ -35,10 +35,6 @@ export const WhatRetirementMeans = ({
3535 closeModal ( ) ;
3636 } ;
3737
38- useEffect ( ( ) => {
39- Sentry . setTag ( "component_name" , "WhatRetirementMeans" ) ;
40- } , [ ] ) ;
41-
4238 const retireAsDrep = useCallback ( async ( ) => {
4339 try {
4440 setIsRetirementLoading ( true ) ;
Original file line number Diff line number Diff line change @@ -39,9 +39,6 @@ const AppContext = createContext<AppContextType | null>(null);
3939 * @param children - The child components to render.
4040 */
4141const AppContextProvider = ( { children } : PropsWithChildren ) => {
42- useEffect ( ( ) => {
43- Sentry . setTag ( "component_name" , "AppContextProvider" ) ;
44- } , [ ] ) ;
4542 const { fetchEpochParams, epochParams } = useGetEpochParams ( ) ;
4643 const { fetchNetworkInfo, networkInfo } = useGetNetworkInfo ( ) ;
4744
Original file line number Diff line number Diff line change 44 createContext ,
55 useContext ,
66 useCallback ,
7- useEffect ,
87} from "react" ;
98import { NodeObject } from "jsonld" ;
109import { blake2bHex } from "blakejs" ;
@@ -43,10 +42,6 @@ const GovernanceActionProvider = ({ children }: PropsWithChildren) => {
4342 * @returns The JSON-LD representation of the governance action.
4443 */
4544
46- useEffect ( ( ) => {
47- Sentry . setTag ( "component_name" , "GovernanceActionProvider" ) ;
48- } , [ ] ) ;
49-
5045 const createGovernanceActionJsonLD = useCallback (
5146 async ( govActionMetadata : GovActionMetadata ) => {
5247 try {
Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ Sentry.init({
5454 } ,
5555} ) ;
5656
57+ Sentry . setTag ( "pdf_ui_version" , pkg . dependencies [ "@intersect.mbo/pdf-ui" ] ) ;
58+ Sentry . setTag (
59+ "govtool_outcomes_pillar_ui_version" ,
60+ pkg . dependencies [ "@intersect.mbo/govtool-outcomes-pillar-ui" ] ,
61+ ) ;
62+
5763ReactDOM . createRoot ( document . getElementById ( "root" ) as HTMLElement ) . render (
5864 < React . StrictMode >
5965 < QueryClientProvider client = { queryClient } >
You can’t perform that action at this time.
0 commit comments