refactor: split components to multiple subdirs
subdirs - homepage - trainingpage - layout
This commit is contained in:
parent
0f8f9ccb04
commit
c170415fd0
15 changed files with 21 additions and 21 deletions
|
|
@ -5,9 +5,9 @@ import ErrorPage from "next/error";
|
|||
import TrainingType from "@/types/training";
|
||||
import { getAllTraining, getTrainingBySlug } from "@/lib/cms/training";
|
||||
import markdownToHTML from "@/lib/markdownToHTML";
|
||||
import { Header } from "@/components/Header";
|
||||
import { Footer } from "@/components/Footer";
|
||||
import { Training } from "@/components/Training";
|
||||
import { Header } from "@/components/layout/Header";
|
||||
import { Footer } from "@/components/layout/Footer";
|
||||
import { Training } from "@/components/trainingpage/Training";
|
||||
|
||||
type Props = {
|
||||
training: TrainingType;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import Head from "next/head";
|
||||
|
||||
import { Header } from "@/components/Header";
|
||||
import { Footer } from "@/components/Footer";
|
||||
import { Header } from "@/components/layout/Header";
|
||||
import { Footer } from "@/components/layout/Footer";
|
||||
import { getAllTraining } from "@/lib/cms/training";
|
||||
import TrainingType from "@/types/training";
|
||||
import { TrainingListGrid } from "@/components/TrainingListGrid";
|
||||
import { TrainingListGrid } from "@/components/trainingpage/TrainingListGrid";
|
||||
|
||||
export const getStaticProps = async () => {
|
||||
const allTraining = getAllTraining([
|
||||
|
|
|
|||
Reference in a new issue