From ceb8923a118d2a2164713c16682587501b52c70e Mon Sep 17 00:00:00 2001 From: Lawson Kight Date: Sat, 28 Sep 2024 14:09:34 -0700 Subject: [PATCH] fix build errors --- docs/bridge/docs/02-Bridge/index.md | 2 +- .../src/components/HomepageFeatures/index.tsx | 26 ++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/bridge/docs/02-Bridge/index.md b/docs/bridge/docs/02-Bridge/index.md index a1d100fba8..dfa2ba2519 100644 --- a/docs/bridge/docs/02-Bridge/index.md +++ b/docs/bridge/docs/02-Bridge/index.md @@ -7,7 +7,7 @@ import SVGBridge from '@site/src/components/SVGBridge' # Synapse Bridge -The [Synapse Bridge](https://synapseprotocol.com) and [Solana Bridge](https://solana.synapseprotocol.com/) seamlessly swap on-chain assets between [20+ EVM and non-EVM blockchains](Supported-Routes) in a safe and secure manner. +The [Synapse Bridge](https://synapseprotocol.com) and [Solana Bridge](https://solana.synapseprotocol.com/) seamlessly swap on-chain assets between [20+ EVM and non-EVM blockchains](/docs/About/Routes) in a safe and secure manner.
diff --git a/docs/bridge/src/components/HomepageFeatures/index.tsx b/docs/bridge/src/components/HomepageFeatures/index.tsx index 50a9e6f4c7..de3376181d 100644 --- a/docs/bridge/src/components/HomepageFeatures/index.tsx +++ b/docs/bridge/src/components/HomepageFeatures/index.tsx @@ -1,12 +1,14 @@ -import clsx from 'clsx'; -import Heading from '@theme/Heading'; -import styles from './styles.module.css'; +/* eslint-disable @typescript-eslint/no-var-requires */ +import clsx from 'clsx' +import Heading from '@theme/Heading' + +import styles from './styles.module.css' type FeatureItem = { - title: string; - Svg: React.ComponentType>; - description: JSX.Element; -}; + title: string + Svg: React.ComponentType> + description: JSX.Element +} const FeatureList: FeatureItem[] = [ { @@ -39,9 +41,9 @@ const FeatureList: FeatureItem[] = [ ), }, -]; +] -function Feature({title, Svg, description}: FeatureItem) { +const Feature = ({ title, Svg, description }: FeatureItem) => { return (
@@ -52,10 +54,10 @@ function Feature({title, Svg, description}: FeatureItem) {

{description}

- ); + ) } -export default function HomepageFeatures(): JSX.Element { +export default () => { return (
@@ -66,5 +68,5 @@ export default function HomepageFeatures(): JSX.Element {
- ); + ) }