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

chore: cleanup testing component #54

Merged
merged 1 commit into from
Feb 15, 2023
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
7 changes: 3 additions & 4 deletions src/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import { Link } from "@tanstack/react-router";
import { type PropsWithChildren } from "react";

import { NamespaceSelect } from "./namespaces/namespace-select";
import { networkingRoutes, todoRoutes, workloadsRoutes } from "./router";
import { networkingRoutes, workloadsRoutes } from "./router";

export function Layout({ children }: PropsWithChildren) {
const sections = [
{ title: "Workload", routes: workloadsRoutes },
{ title: "Networking", routes: networkingRoutes },
{ title: "TODO", routes: todoRoutes },
];

return (
Expand Down Expand Up @@ -42,11 +41,11 @@ export function Layout({ children }: PropsWithChildren) {
</div>
</div>
<div className="flex flex-col pl-40">
<div className="sticky top-0 z-10 flex h-16 shrink-0 bg-gray-200 p-2 shadow flex justify-between items-center w-full">
<div className="sticky top-0 z-10 flex h-16 w-full shrink-0 items-center justify-between bg-gray-200 p-2 shadow">
<NamespaceSelect />

<Cog8ToothIcon
className="h-6 w-6 fill-gray-600 hover:fill-gray-800 cursor-pointer"
className="h-6 w-6 cursor-pointer fill-gray-600 hover:fill-gray-800"
onClick={() => alert("settings")}
/>
</div>
Expand Down
5 changes: 0 additions & 5 deletions src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ export const networkingRoutes = [
{ name: "Services", path: "/services", component: Services },
] as const;

export const todoRoutes = [
{ name: "Testing", path: "/test-playground", component: TestPlayground },
] as const;

const routeTree = rootRoute.addChildren([
new Route({
getParentRoute: () => rootRoute,
Expand All @@ -50,7 +46,6 @@ const routeTree = rootRoute.addChildren([
}),
...workloadsRoutes.map((route) => new Route({ ...route, getParentRoute: () => rootRoute })),
...networkingRoutes.map((route) => new Route({ ...route, getParentRoute: () => rootRoute })),
...todoRoutes.map((route) => new Route({ ...route, getParentRoute: () => rootRoute })),
]);

export const router = new ReactRouter({ routeTree });
Expand Down
19 changes: 0 additions & 19 deletions src/test-playground/test-playground.tsx

This file was deleted.