Ver Fonte

fix: update app

Before há 1 ano atrás
pai
commit
6d7304efe5
1 ficheiros alterados com 5 adições e 4 exclusões
  1. 5 4
      src/app/[locale]/page.tsx

+ 5 - 4
src/app/[locale]/page.tsx

@@ -3,13 +3,14 @@ import HomeActions from "@/app/[locale]/_home/HomeActions";
 import HomeGames from "@/app/[locale]/_home/HomeGames";
 import Box from "@/components/Box";
 import Layout from "@/components/Layout";
-import { useTranslations } from "next-intl";
 import HomeCard from "./_home/HomeCard";
 import HomeSearch from "./_home/HomeSearch";
 import HomeSwiper from "./_home/HomeSwiper";
 
-const App = () => {
-    const t = useTranslations("global");
+async function App() {
+    // const t = useTranslations("global");
+    // const data = await fetch("http://206.168.191.125:8800/v1/api/front/game_list");
+    // console.log(`🎯🎯🎯🎯🎯-> in page.tsx on 13`, data);
     return (
         <Layout>
             <div>
@@ -28,6 +29,6 @@ const App = () => {
             </div>
         </Layout>
     );
-};
+}
 
 export default App;