1- import React from 'react' ;
2- import clsx from 'clsx' ;
3- import styles from './styles.module.css' ;
1+ /* eslint-disable import/no-unresolved */
2+ /* eslint-disable @typescript-eslint/no-var-requires */
3+ /* eslint-disable global-require */
4+ import React from 'react'
5+ import clsx from 'clsx'
6+ import styles from './styles.module.css'
47
58type FeatureItem = {
6- title : string ;
7- Svg : React . ComponentType < React . ComponentProps < 'svg' > > ;
8- description : JSX . Element ;
9- } ;
9+ title : string
10+ Svg : React . ComponentType < React . ComponentProps < 'svg' > >
11+ description : JSX . Element
12+ }
1013
1114const FeatureList : FeatureItem [ ] = [
1215 {
1316 title : 'Easy to Use' ,
14- Svg : require ( '@site/static/img/undraw_docusaurus_mountain .svg' ) . default ,
17+ Svg : require ( '@site/static/img/only-tooltip-top .svg' ) . default ,
1518 description : (
16- < >
17- Docusaurus was designed from the ground up to be easily installed and
18- used to get your website up and running quickly.
19- </ >
19+ < > ReactTooltip was designed with love from the ground up to be easily installed and used.</ >
2020 ) ,
2121 } ,
2222 {
23- title : 'Focus on What Matters ' ,
24- Svg : require ( '@site/static/img/undraw_docusaurus_tree .svg' ) . default ,
23+ title : 'Open Source ' ,
24+ Svg : require ( '@site/static/img/github .svg' ) . default ,
2525 description : (
2626 < >
27- Docusaurus lets you focus on your docs, and we'll do the chores. Go
28- ahead and move your docs into the < code > docs </ code > directory .
27+ An Open Source project built by developers to developers, we work together with the
28+ community to always try to improve ReactTooltip .
2929 </ >
3030 ) ,
3131 } ,
3232 {
33- title : 'Powered by React ' ,
34- Svg : require ( '@site/static/img/undraw_docusaurus_react .svg' ) . default ,
33+ title : 'Focus on What Matters ' ,
34+ Svg : require ( '@site/static/img/happy-face-tooltip .svg' ) . default ,
3535 description : (
3636 < >
37- Extend or customize your website layout by reusing React. Docusaurus can
38- be extended while reusing the same header and footer .
37+ Don’t waste your time building a tooltip component from scratch, just use ReactTooltip
38+ and focus on new features or bug fixes .
3939 </ >
4040 ) ,
4141 } ,
42- ] ;
42+ ]
4343
44- function Feature ( { title, Svg, description} : FeatureItem ) {
44+ function Feature ( { title, Svg, description } : FeatureItem ) {
4545 return (
4646 < div className = { clsx ( 'col col--4' ) } >
4747 < div className = "text--center" >
@@ -52,7 +52,7 @@ function Feature({title, Svg, description}: FeatureItem) {
5252 < p > { description } </ p >
5353 </ div >
5454 </ div >
55- ) ;
55+ )
5656}
5757
5858export default function HomepageFeatures ( ) : JSX . Element {
@@ -61,10 +61,11 @@ export default function HomepageFeatures(): JSX.Element {
6161 < div className = "container" >
6262 < div className = "row" >
6363 { FeatureList . map ( ( props , idx ) => (
64+ // eslint-disable-next-line react/no-array-index-key
6465 < Feature key = { idx } { ...props } />
6566 ) ) }
6667 </ div >
6768 </ div >
6869 </ section >
69- ) ;
70+ )
7071}
0 commit comments