Skip to content

Commit

Permalink
chore: rename visualizer component to NovaVisualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
VmMad committed Feb 28, 2024
1 parent a33992a commit ea21b5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/src/app/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import StardustSearch from "./routes/stardust/Search";
import StardustStatisticsPage from "./routes/stardust/statistics/StatisticsPage";
import StardustTransactionPage from "./routes/stardust/TransactionPage";
import { Visualizer as StardustVisualizer } from "./routes/stardust/Visualizer";
import NovaVisualizerWrapper from "../features/visualizer-threejs/NovaVisualizerWrapper";
import NovaVisualizer from "../features/visualizer-threejs/NovaVisualizer";
import StreamsV0 from "./routes/StreamsV0";
import { StreamsV0RouteProps } from "./routes/StreamsV0RouteProps";
import { VisualizerRouteProps } from "./routes/VisualizerRouteProps";
Expand Down Expand Up @@ -176,7 +176,7 @@ const buildAppRoutes = (protocolVersion: string, withNetworkContext: (wrappedCom
const novaRoutes = [
<Route exact path="/:network" key={keys.next().value} component={NovaLanding} />,
<Route path="/:network/addr/:address" key={keys.next().value} component={NovaAddressPage} />,
<Route path="/:network/visualizer/" key={keys.next().value} component={NovaVisualizerWrapper} />,
<Route path="/:network/visualizer/" key={keys.next().value} component={NovaVisualizer} />,
<Route path="/:network/block/:blockId" key={keys.next().value} component={NovaBlockPage} />,
<Route path="/:network/output/:outputId" key={keys.next().value} component={NovaOutputPage} />,
<Route path="/:network/search/:query?" key={keys.next().value} component={NovaSearch} />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from "react";
import { useGetThemeMode } from "~/helpers/hooks/useGetThemeMode.js";
import { VisualizerRouteProps } from "~/app/routes/VisualizerRouteProps.js";
import { RouteComponentProps } from "react-router-dom";
import NovaVisualizer from "./VisualizerInstance";
import VisualizerInstance from "./VisualizerInstance";

export default function NovaVisualizerWrapper(props: RouteComponentProps<VisualizerRouteProps>): React.JSX.Element {
export default function NovaVisualizer(props: RouteComponentProps<VisualizerRouteProps>): React.JSX.Element {
const theme = useGetThemeMode();

return <NovaVisualizer key={theme} {...props} />;
return <VisualizerInstance key={theme} {...props} />;
}

0 comments on commit ea21b5d

Please sign in to comment.