From 72aa26c880234866eaa2a7a6684ebac98da52108 Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 30 May 2025 16:49:13 +0700 Subject: [PATCH] update view item --- src/renderer/src/App.tsx | 6 ---- src/renderer/src/assets/main.css | 6 ++-- src/renderer/src/components/CardItem.tsx | 46 ++++++++++++++++++++---- 3 files changed, 42 insertions(+), 16 deletions(-) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 9fc55a6..555e6da 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -156,12 +156,6 @@ function App(): React.JSX.Element { ) : ( newItems?.map((item: Product) => { - console.log({ - hotItem, - item, - is_host: isHotItem(item) - }) - return ( = ({ item, hotItem }) => { return ( - + - - {hotItem ? ( - - Hot - + + {true ? ( + + + HOT + + ) : ( '' )}