diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index 0b17f009..c6ed438a 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -17,7 +17,9 @@ const FeatureList: FeatureItem[] = [ title: "Written in Rust", Svg: new_logo_black, description: ( - <>Boa brings Rust's memory safety guarantees to the world of JS engines.> + <> + Boa brings Rust's memory safety guarantees to the world of JS engines. + > ), }, { diff --git a/src/components/benchmarks/index.tsx b/src/components/benchmarks/index.tsx index a028f0fa..8bc4f2c7 100644 --- a/src/components/benchmarks/index.tsx +++ b/src/components/benchmarks/index.tsx @@ -25,7 +25,7 @@ ChartJS.register( Tooltip, Legend, Colors, - BarElement + BarElement, ); export function BenchmarkGraphs() { @@ -52,7 +52,7 @@ export function BenchmarkGraphs() { const buildChartFromBenchmark = async (name: string) => { const data = await fetchData( - `https://raw.githubusercontent.com/boa-dev/data/main/bench/results/${name}.json` + `https://raw.githubusercontent.com/boa-dev/data/main/bench/results/${name}.json`, ); const barData = getBarChartData(data); @@ -79,7 +79,7 @@ const fetchData = async (url: string) => { const data = await response.json(); return { labels: data.labels.map((epoch: number) => - new Date(epoch).toLocaleDateString() + new Date(epoch).toLocaleDateString(), ), datasets: [ { diff --git a/src/components/conformance/Banner/index.tsx b/src/components/conformance/HeroBanner/index.tsx similarity index 77% rename from src/components/conformance/Banner/index.tsx rename to src/components/conformance/HeroBanner/index.tsx index bc3bf1da..5fcfaf6c 100644 --- a/src/components/conformance/Banner/index.tsx +++ b/src/components/conformance/HeroBanner/index.tsx @@ -1,26 +1,27 @@ import React from "react"; -import { VersionItem, TestStats } from "@site/src/components/conformance/types"; -import { mapToTestStats } from "@site/src/components/conformance/utils"; +import { + VersionItem, + TestStats, + ConformanceState, +} from "@site/src/components/conformance/types"; +import { + createState, + mapToTestStats, +} from "@site/src/components/conformance/utils"; +import { useHistory } from "@docusaurus/router"; import Heading from "@theme/Heading"; import styles from "./styles.module.css"; interface BannerProps { focusItems: VersionItem[]; - setNewVersion: (newVersion: VersionItem) => void; } -export default function ConformanceBanner(props: BannerProps): JSX.Element { +export default function ConformanceHeroBanner(props: BannerProps): JSX.Element { return (