@@ -637,9 +636,12 @@ async function Post({ id }) {
onAddComment: handleAddComment,
}}>
@@ -672,37 +674,28 @@ function ExamplePanel({children}) {
);
}
-function PostPage(props) {
- return (
-
- }>
-
-
-
- );
-}
-
function BrowserChrome({children}) {
return
{children}
;
}
-function PageLayout({children}) {
- // TODO: add some layout here
- return
{children}
;
+function PostPage({post}) {
+ return (
+
+
+ }>
+
+
+
+ );
}
-function PostSkeleton() {
+function CommentsSkeleton() {
// TODO: add glimmer here
return
;
}
-function Post({imageUrl, description, comments}) {
- return (
-
-
-
-
- );
+function PostComments({post}) {
+ return
;
}
function CommentList({comments}) {
@@ -714,7 +707,7 @@ function CommentList({comments}) {
{headingText}
{comments.map((comment) => (
-
+
))}
@@ -776,15 +769,16 @@ function AddComment() {
);
}
-function Comment({author, text, postedAt}) {
+function Comment({comment}) {
+ const {author} = comment;
return (
{author.name}
-
+
- {text}
+ {comment.text}
);
}