Commit 6e380580 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

check loading or not found product

parent 1016dabf
...@@ -160,7 +160,7 @@ export default function Home() { ...@@ -160,7 +160,7 @@ export default function Home() {
/> />
<div> <div>
<Box className="flex justify-start mb-3 sm:px-10 max-w-[1520px] mx-auto"> <Box className="flex justify-start mb-3 sm:px-10 max-w-[1520px] mx-auto">
<Box sx={{ display: "flex", overflowX: "scroll" }}> <Box sx={{ display: "flex", overflowX: "scroll" }}>
<Button <Button
variant={category === -1 ? "contained" : "text"} variant={category === -1 ? "contained" : "text"}
className={`${category === -1 ? "" : "bg-white"} mx-1`} className={`${category === -1 ? "" : "bg-white"} mx-1`}
...@@ -240,7 +240,7 @@ export default function Home() { ...@@ -240,7 +240,7 @@ export default function Home() {
</div> </div>
) : ( ) : (
<Paper className="shadow-none" sx={{ p: 2, textAlign: "center" }}> <Paper className="shadow-none" sx={{ p: 2, textAlign: "center" }}>
<CircularProgress /> {algorithm.length ? "ไม่พบรายการ" : <CircularProgress />}
</Paper> </Paper>
)} )}
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment