From 6e87f08821de5b28f6edf8a23e286e26e9f54f57 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 6 Sep 2023 08:03:16 -0700 Subject: [PATCH] chore: remove the grid on blank chat screen Signed-off-by: James --- .../_components/GenerateImageList/index.tsx | 36 +++++++++++-------- .../_components/NewChatBlankState/index.tsx | 10 +++--- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/web-client/app/_components/GenerateImageList/index.tsx b/web-client/app/_components/GenerateImageList/index.tsx index c9a301627..1e9e1cd1f 100644 --- a/web-client/app/_components/GenerateImageList/index.tsx +++ b/web-client/app/_components/GenerateImageList/index.tsx @@ -6,22 +6,28 @@ type Props = { products: ProductDetailFragment[]; }; -const GenerateImageList: React.FC = ({ products }) => ( -
-
-
- -

- Generate Images -

+const GenerateImageList: React.FC = ({ products }) => { + if (products.length === 0) { + return
; + } + + return ( +
+
+
+ +

+ Generate Images +

+
+
+
+ {products.map((item) => ( + + ))}
-
- {products.map((item) => ( - - ))} -
-
-); + ); +}; export default GenerateImageList; diff --git a/web-client/app/_components/NewChatBlankState/index.tsx b/web-client/app/_components/NewChatBlankState/index.tsx index 109017325..7f6c4c86e 100644 --- a/web-client/app/_components/NewChatBlankState/index.tsx +++ b/web-client/app/_components/NewChatBlankState/index.tsx @@ -43,12 +43,10 @@ const NewChatBlankState: React.FC = () => { } return ( -
-
- - - -
+
+ + +
); };