Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bridge page #1508

Merged
merged 3 commits into from
Sep 23, 2024
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
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 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();

Check warning on line 20 in apps/hyperdrive-trading/src/ui/app/Navbar/Navbar.tsx

View workflow job for this annotation

GitHub Actions / verify (lint)

'connector' is assigned a value but never used. Allowed unused vars must match /^unused/u

return (
<div className="daisy-navbar">
<div className="daisy-navbar-start ml-2">
Expand Down Expand Up @@ -46,16 +49,6 @@
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.

Loading