mirror of https://github.com/BRAVO68WEB/shx.git
removed errors and warnings
This commit is contained in:
parent
3438b6bbcc
commit
4567df6fdb
|
@ -2,7 +2,7 @@ import Markdown from '@/components/Markdown';
|
|||
import axios from 'axios';
|
||||
import React from 'react';
|
||||
import showdown from 'showdown';
|
||||
let converter = new showdown.Converter();
|
||||
const converter = new showdown.Converter();
|
||||
|
||||
const Dashboard = async () => {
|
||||
const { data } = await axios.get(
|
||||
|
|
|
@ -12,7 +12,7 @@ function Markdown({ markdown }: MarkdownProps) {
|
|||
const ref = useRef<HTMLDivElement>(null);
|
||||
useEffect(() => {
|
||||
if (ref.current?.innerHTML) ref.current.innerHTML = markdown;
|
||||
}, []);
|
||||
}, [markdown]);
|
||||
return (
|
||||
<div className="markdown-body w-full p-10" ref={ref}>
|
||||
Markdown
|
||||
|
|
Loading…
Reference in New Issue