use right models in the templates

This commit is contained in:
Dave Smith-Hayes 2024-07-26 22:33:31 -04:00
parent 6e400f4263
commit 586ab0287b
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { PostList } from '@blog/templates/components/PostList'; import { PostList } from '@blog/templates/components/PostList';
import { PostMeta } from '@blog/model/PostMeta'; import { PostMeta } from '@blog/models/PostMeta';
export function Home({ posts }: { posts: PostMeta[] }) { export function Home({ posts }: { posts: PostMeta[] }) {
return ( return (

View File

@ -1,4 +1,4 @@
import { Post } from "@blog/model/Post"; import { Post } from "@blog/models/Post";
export function PostPage({ post }: { post: Post }) { export function PostPage({ post }: { post: Post }) {
const html = { __html: post.html ?? '' }; const html = { __html: post.html ?? '' };

View File

@ -1,4 +1,4 @@
import type { PostMeta } from '@blog/model/PostMeta'; import type { PostMeta } from '@blog/models/PostMeta';
export function PostList({ posts }: { posts: PostMeta[] }) { export function PostList({ posts }: { posts: PostMeta[] }) {
return( return(