Skip to content

Commit

Permalink
fix: Page is module
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Oct 31, 2023
1 parent 7e459b6 commit 3e61890
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/devhub/entity/addon/blog/Creator.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const { Card } =
VM.require("${REPL_DEVHUB}/widget/devhub.entity.addon.blog.Card") ||
(() => <></>);
const { Page } =
VM.require("${REPL_DEVHUB}/widget/devhub.entity.addon.blog.Page") ||
(() => <></>);

const categories = [
{
Expand Down Expand Up @@ -140,19 +143,16 @@ function Preview() {
}
case "page": {
return (
<Widget
src="${REPL_DEVHUB}/widget/devhub.entity.addon.blog.Page"
props={{
title,
subtitle,
description,
date,
content,
author,
image: state.image,
tags: data.includeLabels, // filter out "blog" and community handle?
community: handle,
}}
<Page
title={title}
subtitle={subtitle}
description={description}
date={date}
content={content}
author={author}
image={state.image}
tags={data.includeLabels} // filter out "blog" and community handle?
community={handle}
/>
);
}
Expand Down

0 comments on commit 3e61890

Please sign in to comment.