From 4245a273febbdfe90804cdec7a8cac5c39984351 Mon Sep 17 00:00:00 2001 From: Aj - Thomas Date: Wed, 4 May 2022 07:12:22 +0200 Subject: [PATCH] Improve UI --- components/AppShelf/AddAppShelfItem.tsx | 35 +++++--- components/AppShelf/AppShelf.story.tsx | 13 ++- components/AppShelf/AppShelf.tsx | 114 +++++++++++++++--------- components/AppShelf/AppShelfMenu.tsx | 6 +- components/layout/Header.tsx | 44 +++++---- components/layout/Layout.tsx | 14 ++- 6 files changed, 141 insertions(+), 85 deletions(-) diff --git a/components/AppShelf/AddAppShelfItem.tsx b/components/AppShelf/AddAppShelfItem.tsx index 886b661dc..51ca78615 100644 --- a/components/AppShelf/AddAppShelfItem.tsx +++ b/components/AppShelf/AddAppShelfItem.tsx @@ -12,6 +12,7 @@ import { Box, Text, Grid, + Card, } from '@mantine/core'; import { useForm } from '@mantine/hooks'; import { motion } from 'framer-motion'; @@ -30,9 +31,8 @@ export default function AddItemShelfItem(props: any) { name: '', icon: '', url: '', + apiKey: undefined as unknown as string, }, - - validationRules: {}, }); return ( <> @@ -85,7 +85,7 @@ export default function AddItemShelfItem(props: any) { placeholder="http://localhost:8989" value={form.values.url} onChange={(event) => form.setFieldValue('url', event.currentTarget.value)} - error={form.errors.icon && 'Icon url is invalid'} + error={form.errors.url && 'Service url is invalid'} />