Skip to content

Commit 28b8fc3

Browse files
committed
Fix typos
1 parent 3197efe commit 28b8fc3

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/docs/MultiplePageDemo/index.jsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ const { Content } = Layout;
1313
const { TabPane } = Tabs;
1414
const { Text } = Typography;
1515

16-
const initalReportProps = {
16+
const initialReportProps = {
1717
tokenType: 'Embed',
1818
};
1919

2020
const 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%',

src/docs/Report/index.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import Form from './Form';
77
const { Content } = Layout;
88
const { TabPane } = Tabs;
99

10-
const initalReportProps = {
10+
const initialReportProps = {
1111
tokenType: 'Embed',
1212
};
1313

1414
const ReportDemo = () => {
1515
const [reportProps, setReportProps] = React.useState(
16-
initalReportProps
16+
initialReportProps
1717
);
18-
const [isVaildConfig, setIsValidConfig] = React.useState(false);
18+
const [isValidConfig, setIsValidConfig] = React.useState(false);
1919
const [activeTab, setActiveTab] = React.useState('form');
2020

2121
const onTabClick = (key, event) => setActiveTab(key);
@@ -30,7 +30,7 @@ const ReportDemo = () => {
3030

3131
const onReset = React.useCallback(() => {
3232
setIsValidConfig(false);
33-
}, [isVaildConfig]);
33+
}, [isValidConfig]);
3434

3535
const extraSettings = {
3636
filterPaneEnabled: false,
@@ -50,15 +50,15 @@ const ReportDemo = () => {
5050
key="form"
5151
>
5252
<Form
53-
initalReportProps={initalReportProps}
53+
initialReportProps={initialReportProps}
5454
onSubmit={renderWithReportProps}
5555
onReset={onReset}
5656
/>
5757
</TabPane>
5858
<TabPane
59-
disabled={!isVaildConfig}
59+
disabled={!isValidConfig}
6060
tab={
61-
<Badge dot={isVaildConfig}>
61+
<Badge dot={isValidConfig}>
6262
<span>
6363
<CheckCircleTwoTone twoToneColor="#52c41a" />
6464
Report
@@ -67,7 +67,7 @@ const ReportDemo = () => {
6767
}
6868
key="report"
6969
>
70-
{isVaildConfig && (
70+
{isValidConfig && (
7171
<Report
7272
style={{
7373
height: '100%',

0 commit comments

Comments
 (0)