Skip to content

Commit

Permalink
Remove bridge page (#1508)
Browse files Browse the repository at this point in the history
* remove bridge page
  • Loading branch information
cashd committed Sep 23, 2024
1 parent 7783a8e commit 10f9450
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 100 deletions.
11 changes: 0 additions & 11 deletions apps/hyperdrive-trading/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// Import Routes

import { Route as rootRoute } from "./ui/routes/__root";
import { Route as BridgeImport } from "./ui/routes/bridge";
import { Route as ChainlogImport } from "./ui/routes/chainlog";
import { Route as ErrorImport } from "./ui/routes/error";
import { Route as IndexImport } from "./ui/routes/index";
Expand Down Expand Up @@ -53,11 +52,6 @@ const ChainlogRoute = ChainlogImport.update({
getParentRoute: () => rootRoute,
} as any);

const BridgeRoute = BridgeImport.update({
path: "/bridge",
getParentRoute: () => rootRoute,
} as any);

const IndexRoute = IndexImport.update({
path: "/",
getParentRoute: () => rootRoute,
Expand All @@ -76,10 +70,6 @@ declare module "@tanstack/react-router" {
preLoaderRoute: typeof IndexImport;
parentRoute: typeof rootRoute;
};
"/bridge": {
preLoaderRoute: typeof BridgeImport;
parentRoute: typeof rootRoute;
};
"/chainlog": {
preLoaderRoute: typeof ChainlogImport;
parentRoute: typeof rootRoute;
Expand Down Expand Up @@ -115,7 +105,6 @@ declare module "@tanstack/react-router" {

export const routeTree = rootRoute.addChildren([
IndexRoute,
BridgeRoute,
ChainlogRoute,
ErrorRoute,
IneligibleRoute,
Expand Down
15 changes: 4 additions & 11 deletions apps/hyperdrive-trading/src/ui/app/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ import { HyperdriveLogo } from "src/ui/app/Navbar/HyperdriveLogo";
import VersionPicker from "src/ui/base/components/VersionPicker";
import { useIsTailwindSmallScreen } from "src/ui/base/mediaBreakpoints";
import { sepolia } from "viem/chains";
import { useChainId } from "wagmi";
import { useChainId, useConnectorClient } from "wagmi";
export function Navbar(): ReactElement {
const isTailwindSmallScreen = useIsTailwindSmallScreen();
const { location } = useRouterState();
const chainId = useChainId();

const { data: connector } = useConnectorClient();

return (
<div className="daisy-navbar">
<div className="daisy-navbar-start ml-2">
Expand Down Expand Up @@ -46,16 +49,6 @@ export function Navbar(): ReactElement {
Portfolio
</span>
</Link>
<Link to={"/bridge"}>
<span
className={classNames("text-md", {
"text-white": location.pathname === "/bridge",
"text-neutral-content": location.pathname !== "/bridge",
})}
>
Bridge
</span>
</Link>
</div>
</div>
<div className="daisy-navbar-end gap-2 sm:gap-8">
Expand Down
65 changes: 0 additions & 65 deletions apps/hyperdrive-trading/src/ui/bridge/Bridge.tsx

This file was deleted.

1 change: 0 additions & 1 deletion apps/hyperdrive-trading/src/ui/bridge/routes.ts

This file was deleted.

12 changes: 0 additions & 12 deletions apps/hyperdrive-trading/src/ui/routes/bridge.tsx

This file was deleted.

0 comments on commit 10f9450

Please sign in to comment.