diff --git a/web/src/api/APIClient.ts b/web/src/api/APIClient.ts index 3244ab4..4b8c916 100644 --- a/web/src/api/APIClient.ts +++ b/web/src/api/APIClient.ts @@ -99,7 +99,7 @@ export const APIClient = { toggleEnable: (id: number, enabled: boolean) => appClient.Patch(`api/feeds/${id}/enabled`, { enabled }), update: (feed: Feed) => appClient.Put(`api/feeds/${feed.id}`, feed), delete: (id: number) => appClient.Delete(`api/feeds/${id}`), - test: (feed: Feed) => appClient.Post("api/feeds/test", feed), + test: (feed: Feed) => appClient.Post("api/feeds/test", feed) }, indexers: { // returns indexer options for all currently present/enabled indexers diff --git a/web/src/components/alerts/index.tsx b/web/src/components/alerts/index.tsx index 8e8e141..981b6f0 100644 --- a/web/src/components/alerts/index.tsx +++ b/web/src/components/alerts/index.tsx @@ -2,26 +2,26 @@ import { ExclamationIcon } from "@heroicons/react/solid"; interface props { - title: string; + title?: string; text: string; } export function AlertWarning({ title, text }: props) { return ( -
-
-
-
-
-
-

{title}

-
-

{text}

-
+
+
+
+
+
+ {title ? ( +

{title}

+ ) : null} +
+

{text}

diff --git a/web/src/components/debug.tsx b/web/src/components/debug.tsx index f9aec16..b96dd31 100644 --- a/web/src/components/debug.tsx +++ b/web/src/components/debug.tsx @@ -11,7 +11,7 @@ const DEBUG: FC = ({ values }) => { return (
-
{JSON.stringify(values, null, 2)}
+
{JSON.stringify(values, null, 2)}
); }; diff --git a/web/src/components/inputs/input_wide.tsx b/web/src/components/inputs/input_wide.tsx index eae7cdf..be2fa67 100644 --- a/web/src/components/inputs/input_wide.tsx +++ b/web/src/components/inputs/input_wide.tsx @@ -25,7 +25,7 @@ export const TextFieldWide = ({ required, hidden }: TextFieldWideProps) => ( -