Skip to content

Commit

Permalink
chore: Title on view Pad
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlucss committed Mar 22, 2021
1 parent fbe164a commit dc4bb50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions layouts/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const Content = styled.div`
margin-left: auto;
margin-right: auto;
width: 100%;
box-sizing: border-box;
max-width: ${(props) => props.max};
height: ${(props) => props.height};
padding: ${(props) => props.padding};
Expand Down
6 changes: 5 additions & 1 deletion pages/[padName]/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export default function Pad() {
}, 5000);

return (
<Content dangerouslySetInnerHTML={{ __html: contentHtml }} />
<Content>
<h1>{query.padName}</h1>

<div dangerouslySetInnerHTML={{ __html: contentHtml }}/>
</Content>
);
}

0 comments on commit dc4bb50

Please sign in to comment.