Skip to content

Commit

Permalink
chore(): move components folder outside of [lang]
Browse files Browse the repository at this point in the history
  • Loading branch information
leanhanc committed Apr 4, 2023
1 parent 4dafc3f commit 29e690f
Show file tree
Hide file tree
Showing 17 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/[lang]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Components
import Home from "@/app/[lang]/components/views/Home";
import Home from "@/app/components/views/Home";

// Utils
import { getDictionary } from "@/i18n/get-dictionary";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Components
import Header from "@/app/[lang]/components/views/Home/components/Header";
import Ornaments from "@/app/[lang]/components/views/Home/components/Ornaments";
import LocaleSwitcher from "@/app/[lang]/components/views/Home/components/LocaleSwitcher";
import Header from "@/app/components/views/Home/components/Header";
import Ornaments from "@/app/components/views/Home/components/Ornaments";
import LocaleSwitcher from "@/app/components/views/Home/components/LocaleSwitcher";

// Types
import { Dictionary, Locale } from "@/@types/i18n";

// Styles
import styles from "./Home.module.css";
import Button from "@/app/[lang]/components/shared/Button";
import Button from "@/app/components/shared/Button";

interface HomeProps {
dictionary: Dictionary;
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module "*module.css" {
const styles: {
[className: string]: string;
};
export default styles;
}

0 comments on commit 29e690f

Please sign in to comment.