Skip to content

Commit

Permalink
chore: cleanup testing component (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhu2000 authored Feb 15, 2023
1 parent cfe4895 commit 8148408
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
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.

0 comments on commit 8148408

Please sign in to comment.