year hace 1 semana
padre
commit
2080195cd1
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/app/[locale]/(navbar)/gameList2/Left.tsx

+ 3 - 3
src/app/[locale]/(navbar)/gameList2/Left.tsx

@@ -27,9 +27,8 @@ const getGames = async () => {
 };
 
 const Left: React.FC<Props> = ({ actInfo, onChage, onInit }) => {
-    const [tags, setTags] = React.useState<any>([
-        // { id: 1, text: "Popular", img: "https://bcwin.s3.sa-east-1.amazonaws.com/quente.png" },
-    ]);
+    // { id: 1, text: "Popular", img: "https://bcwin.s3.sa-east-1.amazonaws.com/quente.png" },
+    const [tags, setTags] = React.useState<any>([]);
     const { providers, setProviders } = useProviderStore();
     const router = useRouter();
 
@@ -44,6 +43,7 @@ const Left: React.FC<Props> = ({ actInfo, onChage, onInit }) => {
     }, [providers, setProviders]);
 
     React.useEffect(() => {
+        console.log(1122, tags);
         if (actInfo?.id) {
             let res;
             if (actInfo.type === GameListTypeEnum.TAG && tags?.length) {