Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback, useEffect, useState } from "react";
import { useCallback, useState } from "react";
import * as Sentry from "@sentry/react";

import { Typography } from "@atoms";
Expand Down Expand Up @@ -35,10 +35,6 @@ export const WhatRetirementMeans = ({
closeModal();
};

useEffect(() => {
Sentry.setTag("component_name", "WhatRetirementMeans");
}, []);

const retireAsDrep = useCallback(async () => {
try {
setIsRetirementLoading(true);
Expand Down
3 changes: 0 additions & 3 deletions govtool/frontend/src/context/appContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ const AppContext = createContext<AppContextType | null>(null);
* @param children - The child components to render.
*/
const AppContextProvider = ({ children }: PropsWithChildren) => {
useEffect(() => {
Sentry.setTag("component_name", "AppContextProvider");
}, []);
const { fetchEpochParams, epochParams } = useGetEpochParams();
const { fetchNetworkInfo, networkInfo } = useGetNetworkInfo();

Expand Down
5 changes: 0 additions & 5 deletions govtool/frontend/src/context/governanceAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
createContext,
useContext,
useCallback,
useEffect,
} from "react";
import { NodeObject } from "jsonld";
import { blake2bHex } from "blakejs";
Expand Down Expand Up @@ -43,10 +42,6 @@ const GovernanceActionProvider = ({ children }: PropsWithChildren) => {
* @returns The JSON-LD representation of the governance action.
*/

useEffect(() => {
Sentry.setTag("component_name", "GovernanceActionProvider");
}, []);

const createGovernanceActionJsonLD = useCallback(
async (govActionMetadata: GovActionMetadata) => {
try {
Expand Down
6 changes: 6 additions & 0 deletions govtool/frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ Sentry.init({
},
});

Sentry.setTag("pdf_ui_version", pkg.dependencies["@intersect.mbo/pdf-ui"]);
Sentry.setTag(
"govtool_outcomes_pillar_ui_version",
pkg.dependencies["@intersect.mbo/govtool-outcomes-pillar-ui"],
);

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
Expand Down