cleanup for build

This commit is contained in:
karamvir
2023-08-03 14:57:32 -07:00
parent e57a90ca01
commit c5a6f06c35
3 changed files with 7 additions and 16 deletions

View File

@@ -1,6 +1,4 @@
import { ResourceTarget } from "@monitor/client/dist/types";
import { DeploymentStatusIcon } from "@resources/deployment/util";
import { ServerStatusIcon } from "@resources/server/util";
import {
Card,
CardHeader,

View File

@@ -1,12 +1,5 @@
import {
Card,
CardHeader,
CardTitle,
CardDescription,
CardContent,
} from "@ui/card";
import { CardDescription } from "@ui/card";
import { PieChart } from "react-minimal-pie-chart";
import { Link } from "react-router-dom";
import { useRead } from "@hooks";
import { ServerStatus } from "@monitor/client/dist/types";

View File

@@ -5,12 +5,12 @@ import { Page } from "@layouts/page";
import { GitBranch } from "lucide-react";
import { useParams } from "react-router-dom";
const RepoName = ({ id }: { id: string }) => {
const repos = useRead("ListRepos", {}).data;
const repo = repos?.find((r) => r.id === id);
if (!repo) return null;
return <>{repo.name}</>;
};
// const RepoName = ({ id }: { id: string }) => {
// const repos = useRead("ListRepos", {}).data;
// const repo = repos?.find((r) => r.id === id);
// if (!repo) return null;
// return <>{repo.name}</>;
// };
export const RepoPage = () => {
const id = useParams().repoId;