diff --git a/frontend/src/components/resources/deployment/config/components/term-signal.tsx b/frontend/src/components/resources/deployment/config/components/term-signal.tsx index 1a54ab0c7..9b4abd5cd 100644 --- a/frontend/src/components/resources/deployment/config/components/term-signal.tsx +++ b/frontend/src/components/resources/deployment/config/components/term-signal.tsx @@ -1,4 +1,4 @@ -import { ConfigInput, ConfigItem } from "@components/config/util"; +import { ConfigItem } from "@components/config/util"; import { Types } from "@monitor/client"; import { Input } from "@ui/input"; import { @@ -12,23 +12,23 @@ import { import { useToast } from "@ui/use-toast"; import { useEffect, useState } from "react"; -export const TerminationSignals = ({ - args, - set, -}: { - args: Types.TerminationSignalLabel[]; - set: (input: Partial) => void; -}) => { - return ( - -
- {args.map((arg, i) => { - return <>; - })} -
-
- ); -}; +// export const TerminationSignals = ({ +// args, +// set, +// }: { +// args: Types.TerminationSignalLabel[]; +// set: (input: Partial) => void; +// }) => { +// return ( +// +//
+// {args.map((arg, i) => { +// return <>; +// })} +//
+//
+// ); +// }; export const DefaultTerminationSignal = ({ arg, diff --git a/frontend/src/components/util.tsx b/frontend/src/components/util.tsx index 46568a5c7..7a4b841fe 100644 --- a/frontend/src/components/util.tsx +++ b/frontend/src/components/util.tsx @@ -49,23 +49,6 @@ export const WithLoading = ({ return <>{children}; }; -// export const ConfigInput = ({ -// placeholder, -// value, -// onChange, -// }: { -// placeholder: string; -// value: string | undefined; -// onChange: (s: string) => void; -// }) => ( -// onChange(target.value)} -// /> -// ); - export const ActionButton = forwardRef< HTMLButtonElement, { diff --git a/frontend/src/pages/resource_update.tsx b/frontend/src/pages/resource_update.tsx index e79fc6d46..241afd96c 100644 --- a/frontend/src/pages/resource_update.tsx +++ b/frontend/src/pages/resource_update.tsx @@ -6,7 +6,7 @@ import { useRead, useResourceParamType } from "@lib/hooks"; import { useParams } from "react-router-dom"; export const ResourceUpdates = () => { - const type = useResourceParamType(); + const type = useResourceParamType()!; const id = useParams().id as string; const updates = useRead("ListUpdates", { query: { diff --git a/frontend/src/pages/resources.tsx b/frontend/src/pages/resources.tsx index 0200b77f5..8c7833fb5 100644 --- a/frontend/src/pages/resources.tsx +++ b/frontend/src/pages/resources.tsx @@ -11,7 +11,7 @@ import { useAtom } from "jotai"; const viewAtom = atomWithStorage<"cards" | "table">("list-show-as-v0", "table"); export const Resources = () => { - const type = useResourceParamType(); + const type = useResourceParamType()!; const Components = ResourceComponents[type]; const tags = useTagsFilter();