fix frontend

This commit is contained in:
mbecker20
2024-04-01 04:31:17 -07:00
parent ee22044b34
commit 3a5530a186
4 changed files with 20 additions and 37 deletions

View File

@@ -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<Types.DeploymentConfig>) => void;
}) => {
return (
<ConfigItem label="Termination Signals">
<div>
{args.map((arg, i) => {
return <></>;
})}
</div>
</ConfigItem>
);
};
// export const TerminationSignals = ({
// args,
// set,
// }: {
// args: Types.TerminationSignalLabel[];
// set: (input: Partial<Types.DeploymentConfig>) => void;
// }) => {
// return (
// <ConfigItem label="Termination Signals">
// <div>
// {args.map((arg, i) => {
// return <></>;
// })}
// </div>
// </ConfigItem>
// );
// };
export const DefaultTerminationSignal = ({
arg,

View File

@@ -49,23 +49,6 @@ export const WithLoading = ({
return <>{children}</>;
};
// export const ConfigInput = ({
// placeholder,
// value,
// onChange,
// }: {
// placeholder: string;
// value: string | undefined;
// onChange: (s: string) => void;
// }) => (
// <Input
// placeholder={placeholder}
// className="max-w-[500px]"
// value={value}
// onChange={({ target }) => onChange(target.value)}
// />
// );
export const ActionButton = forwardRef<
HTMLButtonElement,
{

View File

@@ -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: {

View File

@@ -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();