1
1
import React from 'react'
2
+ import type { FunctionComponent } from 'react'
2
3
import clsx from 'clsx'
3
4
import Layout from '@theme/Layout'
4
5
import Link from '@docusaurus/Link'
5
6
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
6
7
import useBaseUrl from '@docusaurus/useBaseUrl'
7
8
import styles from './styles.module.css'
8
9
9
- import { DocusaurusConfig } from '@docusaurus/types'
10
+ import type { DocusaurusConfig } from '@docusaurus/types'
11
+
12
+ void React
10
13
11
14
// one-pager - Encapsulates the essence of a technology onto a single page.
12
15
@@ -44,14 +47,14 @@ const features = [
44
47
} ,
45
48
]
46
49
47
- function Feature ( { key, imageUrl, title, description } ) {
50
+ const Feature : FunctionComponent < any > = ( { key, imageUrl, title, description } ) => {
48
51
void key
49
52
const imgUrl = useBaseUrl ( imageUrl )
50
53
return (
51
- < div className = { clsx ( 'col col--4' , styles . feature ) } >
54
+ < div className = { clsx ( 'col col--4' , styles [ ' feature' ] ) } >
52
55
{ imgUrl && (
53
56
< div className = "text--center" >
54
- < img className = { styles . featureImage } src = { imgUrl } alt = { title } />
57
+ < img className = { styles [ ' featureImage' ] } src = { imgUrl } alt = { title } />
55
58
</ div >
56
59
) }
57
60
< h3 > { title } </ h3 >
@@ -67,15 +70,15 @@ function Home () {
67
70
< Layout
68
71
title = { `${ siteConfig . title } ` }
69
72
description = "RPA SDK for Chatbot Makers." >
70
- < header className = { clsx ( 'hero hero--primary' , styles . heroBanner ) } >
73
+ < header className = { clsx ( 'hero hero--primary' , styles [ ' heroBanner' ] ) } >
71
74
< div className = "container" >
72
75
< h1 className = "hero__title" > { siteConfig . title } </ h1 >
73
76
< p className = "hero__subtitle" > { siteConfig . tagline } </ p >
74
- < div className = { styles . buttons } >
77
+ < div className = { styles [ ' buttons' ] } >
75
78
< Link
76
79
className = { clsx (
77
80
'button button--outline button--secondary button--lg' ,
78
- styles . getStarted ,
81
+ styles [ ' getStarted' ] ,
79
82
) }
80
83
to = { useBaseUrl ( '/docs/' ) } >
81
84
Get Started
@@ -85,7 +88,7 @@ function Home () {
85
88
</ header >
86
89
< main >
87
90
{ features && features . length > 0 && (
88
- < section className = { styles . features } >
91
+ < section className = { styles [ ' features' ] } >
89
92
< div className = "container" >
90
93
< div className = "row" >
91
94
{ features . map ( ( props , idx ) => (
0 commit comments