chore: remove the grid on blank chat screen
Signed-off-by: James <james@jan.ai>
This commit is contained in:
parent
d3a08984bc
commit
6e87f08821
@ -6,7 +6,12 @@ type Props = {
|
|||||||
products: ProductDetailFragment[];
|
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="pb-4">
|
||||||
<div className="flex mt-4 justify-between">
|
<div className="flex mt-4 justify-between">
|
||||||
<div className="gap-4 flex items-center">
|
<div className="gap-4 flex items-center">
|
||||||
@ -22,6 +27,7 @@ const GenerateImageList: React.FC<Props> = ({ products }) => (
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
};
|
||||||
|
|
||||||
export default GenerateImageList;
|
export default GenerateImageList;
|
||||||
|
|||||||
@ -43,13 +43,11 @@ const NewChatBlankState: React.FC = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="grid">
|
|
||||||
<div className="bg-gray-100 px-6 pt-8 w-full h-full overflow-y-scroll scroll">
|
<div className="bg-gray-100 px-6 pt-8 w-full h-full overflow-y-scroll scroll">
|
||||||
<Slider products={featured} />
|
<Slider products={featured} />
|
||||||
<ConversationalList products={conversational} />
|
<ConversationalList products={conversational} />
|
||||||
<GenerateImageList products={generativeArts} />
|
<GenerateImageList products={generativeArts} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user