From f747003893b7e6735b076bf75a1ff6a0517d0080 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Fri, 20 Dec 2024 20:14:42 +0100 Subject: [PATCH] UI: fix interface breakages on some components. Features will be migrated later --- pkgs/webview-ui/app/src/Form/form/index.tsx | 6 +++--- pkgs/webview-ui/app/src/routes/clans/create.tsx | 12 ++++++------ pkgs/webview-ui/app/src/routes/clans/details.tsx | 12 ++++++------ pkgs/webview-ui/app/src/routes/machines/details.tsx | 3 ++- pkgs/webview-ui/app/tailwind/core-plugin.ts | 4 ++-- 5 files changed, 19 insertions(+), 18 deletions(-) diff --git a/pkgs/webview-ui/app/src/Form/form/index.tsx b/pkgs/webview-ui/app/src/Form/form/index.tsx index 021eccd79..99c73b233 100644 --- a/pkgs/webview-ui/app/src/Form/form/index.tsx +++ b/pkgs/webview-ui/app/src/Form/form/index.tsx @@ -248,7 +248,7 @@ export function StringField( {(options) => ( ( ( {
clan-core # - ), - position: "start", - }} + // adornment={{ + // content: ( + // clan-core # + // ), + // position: "start", + // }} inputProps={props} label="Template to use" value={field.value ?? ""} diff --git a/pkgs/webview-ui/app/src/routes/clans/details.tsx b/pkgs/webview-ui/app/src/routes/clans/details.tsx index 7a11eacac..6af6686f3 100644 --- a/pkgs/webview-ui/app/src/routes/clans/details.tsx +++ b/pkgs/webview-ui/app/src/routes/clans/details.tsx @@ -217,12 +217,12 @@ const AdminModuleForm = (props: AdminModuleFormProps) => { key - ), - }} + // adornment={{ + // position: "start", + // content: ( + // key + // ), + // }} value={field.value ?? ""} error={field.error} class="col-span-4" diff --git a/pkgs/webview-ui/app/src/routes/machines/details.tsx b/pkgs/webview-ui/app/src/routes/machines/details.tsx index 4b510a276..f7ca5ac93 100644 --- a/pkgs/webview-ui/app/src/routes/machines/details.tsx +++ b/pkgs/webview-ui/app/src/routes/machines/details.tsx @@ -613,7 +613,8 @@ function WifiModule(props: MachineWifiProps) { label="Password" value={field.value ?? ""} error={field.error} - type="password" + // todo + // type="password" required /> )} diff --git a/pkgs/webview-ui/app/tailwind/core-plugin.ts b/pkgs/webview-ui/app/tailwind/core-plugin.ts index f578dd00c..55a658766 100644 --- a/pkgs/webview-ui/app/tailwind/core-plugin.ts +++ b/pkgs/webview-ui/app/tailwind/core-plugin.ts @@ -10,7 +10,7 @@ const toRGB = (value: string) => const mkBorderUtils = ( theme: (n: string) => unknown, prefix: string, - cssProperty: string + cssProperty: string, ) => ({ // - def colors [`.${prefix}-def-1`]: { @@ -278,5 +278,5 @@ export default plugin.withOptions( }, ...typography, }, - }) + }), );