Fix variable typo (#8084)

This commit is contained in:
Nam Vu
2024-09-08 12:14:11 +07:00
committed by GitHub
parent b1918dae5e
commit 2d7954c7da
215 changed files with 599 additions and 597 deletions

View File

@@ -17,7 +17,7 @@ type Props = {
const Icon = ({ svgString, active }: { svgString: string; active: boolean }) => {
const svgRef = useRef<SVGSVGElement | null>(null)
const SVGParsor = (svg: string) => {
const SVGParser = (svg: string) => {
if (!svg)
return null
const parser = new DOMParser()
@@ -25,7 +25,7 @@ const Icon = ({ svgString, active }: { svgString: string; active: boolean }) =>
return doc.documentElement
}
useMount(() => {
const svgElement = SVGParsor(svgString)
const svgElement = SVGParser(svgString)
if (svgRef.current && svgElement)
svgRef.current.appendChild(svgElement)
})