@@ -13,15 +13,15 @@ const { Content } = Layout;
1313const { TabPane } = Tabs ;
1414const { Text } = Typography ;
1515
16- const initalReportProps = {
16+ const initialReportProps = {
1717 tokenType : 'Embed' ,
1818} ;
1919
2020const ReportDemo = ( ) => {
2121 const [ reportProps , setReportProps ] = React . useState (
22- initalReportProps
22+ initialReportProps
2323 ) ;
24- const [ isVaildConfig , setIsValidConfig ] = React . useState ( false ) ;
24+ const [ isValidConfig , setIsValidConfig ] = React . useState ( false ) ;
2525 const [ activeTab , setActiveTab ] = React . useState ( 'form' ) ;
2626
2727 const onTabClick = ( key , event ) => setActiveTab ( key ) ;
@@ -76,7 +76,7 @@ const ReportDemo = () => {
7676
7777 const onReset = React . useCallback ( ( ) => {
7878 setIsValidConfig ( false ) ;
79- } , [ isVaildConfig ] ) ;
79+ } , [ isValidConfig ] ) ;
8080
8181 const extraSettings = {
8282 filterPaneEnabled : false ,
@@ -118,7 +118,7 @@ const ReportDemo = () => {
118118 key = "form"
119119 >
120120 < Form
121- initalReportProps = { initalReportProps }
121+ initialReportProps = { initialReportProps }
122122 onSubmit = { renderWithReportProps }
123123 onReset = { onReset }
124124 />
@@ -151,9 +151,9 @@ const ReportDemo = () => {
151151 </ Info >
152152 </ TabPane >
153153 < TabPane
154- disabled = { ! isVaildConfig }
154+ disabled = { ! isValidConfig }
155155 tab = {
156- < Badge dot = { isVaildConfig } >
156+ < Badge dot = { isValidConfig } >
157157 < span >
158158 < CheckCircleTwoTone twoToneColor = "#52c41a" />
159159 Report
@@ -212,7 +212,7 @@ const ReportDemo = () => {
212212 </ div >
213213 </ div >
214214 < div style = { { display : 'flex' , height : '100%' } } >
215- { isVaildConfig && (
215+ { isValidConfig && (
216216 < Report
217217 style = { {
218218 height : '100%' ,
@@ -234,7 +234,7 @@ const ReportDemo = () => {
234234 } }
235235 />
236236 ) }
237- { isVaildConfig && (
237+ { isValidConfig && (
238238 < Report
239239 style = { {
240240 height : '100%' ,
0 commit comments