mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
fix: missed type after refactor
This commit is contained in:
@@ -17,7 +17,7 @@ interface IMarkdownProps {
|
||||
export function Markdown({
|
||||
content,
|
||||
...restProps
|
||||
}: MarkdownProps): JSX.Element {
|
||||
}: IMarkdownProps): JSX.Element {
|
||||
React.useEffect(() => {
|
||||
Prism.highlightAll()
|
||||
}, [])
|
||||
|
||||
@@ -51,7 +51,7 @@ export function ResourceHeader({
|
||||
timeToRead,
|
||||
recommendedReading,
|
||||
externalResources,
|
||||
}: ResourceHeaderProps) {
|
||||
}: IResourceHeaderProps) {
|
||||
const date = new Date(createdAt)
|
||||
const month = date.toLocaleString("default", { month: "long" })
|
||||
const day = date.getDate()
|
||||
|
||||
Reference in New Issue
Block a user