Skip to content

Commit

Permalink
Refactor components and update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
All-Khwarizmi committed Mar 18, 2024
1 parent 073897c commit 5b8bd9a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { ChakraProvider } from "@chakra-ui/react";
import theme from "@/styles/theme";
import Main from "@/components/Main";

import Main from "@/components/Main";

export default function App() {
return (
Expand Down
13 changes: 8 additions & 5 deletions src/app/stats/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
"use client";
import WordsList from "@/components/WordsList"; // Ajustez le chemin d'importation selon votre structure
import Header from "@/components/Header";
import Stats from "@/components/stats/Stats";

import theme from "@/styles/theme";
import { ChakraProvider } from "@chakra-ui/react";
export default function HomePage() {
return (
<div>
<h1>Popular Words</h1>
<WordsList />
</div>
<ChakraProvider theme={theme} cssVarsRoot="body">
<Header />
<Stats />
</ChakraProvider>
);
}
10 changes: 10 additions & 0 deletions src/components/stats/Stats.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import WordsList from "./WordsList";

export default function Stats() {
return (
<>
<h1>Stats</h1>
<WordsList></WordsList>
</>
);
}
File renamed without changes.

0 comments on commit 5b8bd9a

Please sign in to comment.