mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 07:56:12 +02:00
fix: missed type after refactor
This commit is contained in:
@@ -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()
|
||||||
}, [])
|
}, [])
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user