Skip to content

Commit

Permalink
fix: docs build error (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
po4tion authored Nov 20, 2024
1 parent 7d3f4b1 commit 06a6e1c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/docs/technical/benchmark-bar-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface BenchmarkBarChart {
locale: 'ko' | 'en';
}

export const BenchmarkBarChart = ({ locale }: BenchmarkBarChart) => {
export default function BenchmarkBarChart({ locale }: BenchmarkBarChart) {
const [filledPercentages, setFilledPercentages] = useState<number[]>(benchmarkData.map(() => 0));
const [isVisible, setIsVisible] = useState(false);
const chartRef = useRef<HTMLDivElement>(null);
Expand Down Expand Up @@ -120,7 +120,7 @@ export const BenchmarkBarChart = ({ locale }: BenchmarkBarChart) => {
</a>
</div>
);
};
}

const 천만 = 10000000;
const benchmarkData = [
Expand Down
8 changes: 3 additions & 5 deletions docs/src/pages/docs/technical/benchmark.en.mdx
Original file line number Diff line number Diff line change
@@ -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**.

<br />
<br />

<BenchmarkBarChart locale='en'/>
<BenchmarkBarChart locale="en" />
7 changes: 3 additions & 4 deletions docs/src/pages/docs/technical/benchmark.ko.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: benchamark
title: benchmark
---

import { BenchmarkBarChart } from './benchmark-bar-chart.tsx';

import BenchmarkBarChart from './benchmark-bar-chart.tsx';

# ⚡ 빠른 한글 처리 라이브러리

Expand All @@ -13,4 +12,4 @@ import { BenchmarkBarChart } from './benchmark-bar-chart.tsx';
<br />
<br />

<BenchmarkBarChart locale="ko"/>
<BenchmarkBarChart locale="ko" />

0 comments on commit 06a6e1c

Please sign in to comment.