From 06a6e1cc66c5d09ac8caa75708f4ea8a6695c0de Mon Sep 17 00:00:00 2001 From: Dongkyu Kim Date: Wed, 20 Nov 2024 21:25:39 +0900 Subject: [PATCH] fix: docs build error (#287) --- docs/src/pages/docs/technical/benchmark-bar-chart.tsx | 4 ++-- docs/src/pages/docs/technical/benchmark.en.mdx | 8 +++----- docs/src/pages/docs/technical/benchmark.ko.mdx | 7 +++---- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/docs/src/pages/docs/technical/benchmark-bar-chart.tsx b/docs/src/pages/docs/technical/benchmark-bar-chart.tsx index 5255cc99..0741de22 100644 --- a/docs/src/pages/docs/technical/benchmark-bar-chart.tsx +++ b/docs/src/pages/docs/technical/benchmark-bar-chart.tsx @@ -6,7 +6,7 @@ interface BenchmarkBarChart { locale: 'ko' | 'en'; } -export const BenchmarkBarChart = ({ locale }: BenchmarkBarChart) => { +export default function BenchmarkBarChart({ locale }: BenchmarkBarChart) { const [filledPercentages, setFilledPercentages] = useState(benchmarkData.map(() => 0)); const [isVisible, setIsVisible] = useState(false); const chartRef = useRef(null); @@ -120,7 +120,7 @@ export const BenchmarkBarChart = ({ locale }: BenchmarkBarChart) => { ); -}; +} const 천만 = 10000000; const benchmarkData = [ diff --git a/docs/src/pages/docs/technical/benchmark.en.mdx b/docs/src/pages/docs/technical/benchmark.en.mdx index fa8b7cb9..28709c23 100644 --- a/docs/src/pages/docs/technical/benchmark.en.mdx +++ b/docs/src/pages/docs/technical/benchmark.en.mdx @@ -1,17 +1,15 @@ --- -title: benchamark +title: benchmark --- -import { BenchmarkBarChart } from './benchmark-bar-chart.tsx'; - +import BenchmarkBarChart from './benchmark-bar-chart.tsx'; # ⚡ Fast Korean Text Processing Library - es-hangul boasts **top-notch performance**, efficiently handling complex tasks such as Korean character composition and decomposition with incredible speed. Benchmark tests against other libraries have shown that es-hangul delivers **overwhelmingly superior performance**.

- + diff --git a/docs/src/pages/docs/technical/benchmark.ko.mdx b/docs/src/pages/docs/technical/benchmark.ko.mdx index e2935929..4733050c 100644 --- a/docs/src/pages/docs/technical/benchmark.ko.mdx +++ b/docs/src/pages/docs/technical/benchmark.ko.mdx @@ -1,9 +1,8 @@ --- -title: benchamark +title: benchmark --- -import { BenchmarkBarChart } from './benchmark-bar-chart.tsx'; - +import BenchmarkBarChart from './benchmark-bar-chart.tsx'; # ⚡ 빠른 한글 처리 라이브러리 @@ -13,4 +12,4 @@ import { BenchmarkBarChart } from './benchmark-bar-chart.tsx';

- +