1
0
Fork 0

refactor: split components to multiple subdirs

subdirs
- homepage
- trainingpage
- layout
This commit is contained in:
Vojtěch Mareš 2023-01-11 12:17:35 +01:00
parent 0f8f9ccb04
commit c170415fd0
15 changed files with 21 additions and 21 deletions

View file

@ -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;

View file

@ -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([