fix: missed type after refactor

This commit is contained in:
Jean-Philippe Sirois
2019-09-05 01:40:48 -04:00
parent f7ec493b2e
commit de7e06eb2a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ interface IMarkdownProps {
export function Markdown({ export function Markdown({
content, content,
...restProps ...restProps
}: MarkdownProps): JSX.Element { }: IMarkdownProps): JSX.Element {
React.useEffect(() => { React.useEffect(() => {
Prism.highlightAll() Prism.highlightAll()
}, []) }, [])
+1 -1
View File
@@ -51,7 +51,7 @@ export function ResourceHeader({
timeToRead, timeToRead,
recommendedReading, recommendedReading,
externalResources, externalResources,
}: ResourceHeaderProps) { }: IResourceHeaderProps) {
const date = new Date(createdAt) const date = new Date(createdAt)
const month = date.toLocaleString("default", { month: "long" }) const month = date.toLocaleString("default", { month: "long" })
const day = date.getDate() const day = date.getDate()