Browse Source

add settimeout on lader

master
azri 4 weeks ago
parent
commit
503952aac4
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/components/Loader/Loader.jsx

+ 3
- 1
src/components/Loader/Loader.jsx View File

12
   useEffect(() => {
12
   useEffect(() => {
13
     
13
     
14
     if (products.length > 0) {
14
     if (products.length > 0) {
15
-      setDisplay(false)
15
+      setTimeout(() => {
16
+        setDisplay(false)
17
+      }, 1000);
16
     }
18
     }
17
 
19
 
18
   }, [products])
20
   }, [products])

Loading…
Cancel
Save