Skip to content

Commit

Permalink
feat: rename NamTransfer
Browse files Browse the repository at this point in the history
  • Loading branch information
euharrison committed Sep 18, 2024
1 parent 32c325c commit e9edce4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/namadillo/src/App/Layout/TopNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const TopNavigation = (): JSX.Element => {
)}
{namTransfersEnabled && (
<ActionButton
href={TransferRoutes.transfer().url}
href={TransferRoutes.namTransfer().url}
size="sm"
backgroundColor="white"
className="w-[140px]"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PageWithSidebar } from "App/Common/PageWithSidebar";

export const InternalTransfer: React.FC = () => {
export const NamTransfer: React.FC = () => {
return (
<PageWithSidebar>
<div className="flex flex-col gap-2 text-yellow">
Expand Down
6 changes: 3 additions & 3 deletions apps/namadillo/src/App/Transfer/Transfer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Route, Routes } from "react-router-dom";
import { InternalTransfer } from "./InternalTransfer";
import { NamTransfer } from "./NamTransfer";
import { Shield } from "./Shield";
import { ShieldAll } from "./ShieldAll";
import TransferRoutes from "./routes";
Expand All @@ -8,8 +8,8 @@ export const Transfer: React.FC = () => (
<main className="w-full">
<Routes>
<Route
path={TransferRoutes.transfer().toString()}
element={<InternalTransfer />}
path={TransferRoutes.namTransfer().toString()}
element={<NamTransfer />}
/>
<Route path={TransferRoutes.shield().toString()} element={<Shield />} />
<Route
Expand Down
4 changes: 2 additions & 2 deletions apps/namadillo/src/App/Transfer/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const routeOutput = createRouteOutput(index);

export const overview = (): RouteOutput => routeOutput("/");

export const transfer = (): RouteOutput => routeOutput("/transfer");
export const namTransfer = (): RouteOutput => routeOutput("/nam");

export const shield = (): RouteOutput => routeOutput("/shield");

Expand All @@ -15,7 +15,7 @@ export const shieldAll = (): RouteOutput => routeOutput("/shield-all");
export default {
index,
overview,
transfer,
namTransfer,
shield,
shieldAll,
};

0 comments on commit e9edce4

Please sign in to comment.