forked from github-starred/komodo
cleanup for build
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user