removed errors and warnings

This commit is contained in:
Chirag Bhalotia 2023-06-24 14:01:04 +05:30
parent 3438b6bbcc
commit 4567df6fdb
No known key found for this signature in database
GPG Key ID: F7F1F1FBFFD40427
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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