Skip to content

Commit

Permalink
♻️ refactor(arts/models): rename models -> _models
Browse files Browse the repository at this point in the history
  • Loading branch information
syakoo committed Nov 23, 2023
1 parent b4dc3ac commit 2d29802
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/app/arts/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { HeaderFooterTemplate } from "@/components/HeaderFooterTemplate";
import { formatPageTitle } from "@/config/pageTitle";
import { readArtContents } from "@/contents/arts/reader";
import { ArtDetail } from "@/features/arts/ArtDetail";
import { serializeArtBody } from "@/features/arts/models/bodySerializer";
import { resolveArtHead } from "@/features/arts/models/headResolver";
import { SerializedArt } from "@/features/arts/models/types";
import { serializeArtBody } from "@/features/arts/_models/bodySerializer";
import { resolveArtHead } from "@/features/arts/_models/headResolver";
import { SerializedArt } from "@/features/arts/_models/types";

export const generateStaticParams = async () => {
const artContents = await readArtContents();
Expand Down
4 changes: 2 additions & 2 deletions src/app/arts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { HeaderFooterTemplate } from "@/components/HeaderFooterTemplate";
import { formatPageTitle } from "@/config/pageTitle";
import { readArtContents } from "@/contents/arts/reader";
import { ArtList } from "@/features/arts/ArtList";
import { resolveArtHead } from "@/features/arts/models/headResolver";
import { ArtHead } from "@/features/arts/models/types";
import { resolveArtHead } from "@/features/arts/_models/headResolver";
import { ArtHead } from "@/features/arts/_models/types";

export const metadata: Metadata = {
title: formatPageTitle("Arts"),
Expand Down
4 changes: 2 additions & 2 deletions src/features/arts/ArtDetail/ArtDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import Image from "next/image";

import { Col, Row } from "@/design-system/layout";
import { H2, Text } from "@/design-system/ui";
import { resolveArtBody } from "@/features/arts/_models/bodyResolver";
import { SerializedArt } from "@/features/arts/_models/types";
import { HeartButton } from "@/features/arts/_shared/HeartButton/HeartButton";
import { resolveArtBody } from "@/features/arts/models/bodyResolver";
import { SerializedArt } from "@/features/arts/models/types";

import { artDetailStyles } from "./ArtDetail.css";
import { useFav } from "./useFav";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import Image from "next/image";
import { api } from "@/api";
import { Col, FlexItem, Row } from "@/design-system/layout";
import { H3, Link } from "@/design-system/ui";
import type { ArtHead } from "@/features/arts/_models/types";
import { HeartButton } from "@/features/arts/_shared/HeartButton";
import type { ArtHead } from "@/features/arts/models/types";

import { artGalleryItemStyles } from "./ArtGalleryItem.css";

Expand Down
2 changes: 1 addition & 1 deletion src/features/arts/ArtList/ArtList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Col, Container } from "@/design-system/layout";
import { H2, FadeIn } from "@/design-system/ui";
import type { ArtHead } from "@/features/arts/models/types";
import type { ArtHead } from "@/features/arts/_models/types";

import { ArtGalleryItem } from "./ArtGalleryItem";
import { artListStyles } from "./ArtList.css";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2d29802

Please sign in to comment.