chore: remove the grid on blank chat screen

Signed-off-by: James <james@jan.ai>
This commit is contained in:
James 2023-09-06 08:03:16 -07:00
parent d3a08984bc
commit 6e87f08821
2 changed files with 25 additions and 21 deletions

View File

@ -6,7 +6,12 @@ type Props = {
products: ProductDetailFragment[];
};
const GenerateImageList: React.FC<Props> = ({ products }) => (
const GenerateImageList: React.FC<Props> = ({ products }) => {
if (products.length === 0) {
return <div></div>;
}
return (
<div className="pb-4">
<div className="flex mt-4 justify-between">
<div className="gap-4 flex items-center">
@ -23,5 +28,6 @@ const GenerateImageList: React.FC<Props> = ({ products }) => (
</div>
</div>
);
};
export default GenerateImageList;

View File

@ -43,13 +43,11 @@ const NewChatBlankState: React.FC = () => {
}
return (
<div className="grid">
<div className="bg-gray-100 px-6 pt-8 w-full h-full overflow-y-scroll scroll">
<Slider products={featured} />
<ConversationalList products={conversational} />
<GenerateImageList products={generativeArts} />
</div>
</div>
);
};