Skip to content

Commit e60a9c0

Browse files
committed
Fix all typos
1 parent 7a3dab3 commit e60a9c0

File tree

13 files changed

+68
-68
lines changed

13 files changed

+68
-68
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Steps to contibute
1+
# Steps to contribute
22

33
1. Fork the repo
4-
2. Create a new PR with decription of your changes and why it's needed
4+
2. Create a new PR with description of your changes and why it's needed
55
3. Wait ~1 day to get your changes reviewed
66
4. Once the comments are fixed and PR is merged new version of package will be deployed
77

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Existing users of the package please refer to Change Log [here](https://github.c
1616

1717
`npm i powerbi-report-component`
1818

19-
## Usuage for Report
19+
## Usage for Report
2020

2121
```javascript
2222
import React, {Component} from 'react';
@@ -25,7 +25,7 @@ import { Report } from 'powerbi-report-component';
2525
class MyComponent extends Component {
2626
constructor(props) {
2727
super(props);
28-
this.report = null; // to store the loaded report's object to perform operations like print, fullscreen etc..
28+
this.report = null; // to store the loaded report's object to perform operations like print, full screen etc..
2929
}
3030
...
3131
handleDataSelected = (data) => {
@@ -63,7 +63,7 @@ class MyComponent extends Component {
6363
const extraSettings = {
6464
filterPaneEnabled: false, //true
6565
navContentPaneEnabled: false, //true
66-
hideErrors: false // Use this *only* when you want to overide error experience i.e, use onError
66+
hideErrors: false // Use this *only* when you want to override error experience i.e, use onError
6767
// ... more custom settings
6868
};
6969
return (
@@ -93,7 +93,7 @@ class MyComponent extends Component {
9393

9494
```
9595

96-
## Usuage for Dashboard
96+
## Usage for Dashboard
9797

9898
```javascript
9999
import { Dashboard } from 'powerbi-report-component';
@@ -116,7 +116,7 @@ import { Dashboard } from 'powerbi-report-component';
116116
/>
117117
```
118118

119-
## Usuage for Tile
119+
## Usage for Tile
120120

121121
```javascript
122122
import { Tile } from 'powerbi-report-component';
@@ -188,7 +188,7 @@ export default MyReport;
188188

189189
## Report features and props you can pass into the component
190190

191-
Inside your compoent where you're using { Report } component.
191+
Inside your component where you're using { Report } component.
192192

193193
_Constructor:_
194194

@@ -514,7 +514,7 @@ onClick = {(data) => {
514514
}}
515515
```
516516

517-
For playgroud visit:
517+
For playground visit:
518518

519519
> http://akshay5995.github.io/powerbi-report-component
520520

src/docs/CreateReport/Form.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Form, Input, Select } from 'antd';
33
import { layout } from '../styles/formLayoutStyles';
44
import FormButtonGroup from '../common/FormButtonGroup';
55

6-
const ReportForm = ({ onSubmit, initalReportProps, onReset }) => {
6+
const ReportForm = ({ onSubmit, initialReportProps, onReset }) => {
77
const [isSubmit, setIsSubmit] = React.useState(false);
88

99
const onSubmitForm = ({ reportProps }) => {
@@ -23,7 +23,7 @@ const ReportForm = ({ onSubmit, initalReportProps, onReset }) => {
2323
colon={false}
2424
name="reportProps"
2525
onFinish={onSubmitForm}
26-
initialValues={{ reportProps: initalReportProps }}
26+
initialValues={{ reportProps: initialReportProps }}
2727
>
2828
<Form.Item
2929
label="Token Type"

src/docs/CreateReport/index.jsx

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

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

1515
const ReportDemo = () => {
1616
const [reportProps, setReportProps] = React.useState(
17-
initalReportProps
17+
initialReportProps
1818
);
19-
const [isVaildConfig, setIsValidConfig] = React.useState(false);
19+
const [isValidConfig, setIsValidConfig] = React.useState(false);
2020
const [activeTab, setActiveTab] = React.useState('form');
2121

2222
const onTabClick = (key, event) => setActiveTab(key);
@@ -31,7 +31,7 @@ const ReportDemo = () => {
3131

3232
const onReset = React.useCallback(() => {
3333
setIsValidConfig(false);
34-
}, [isVaildConfig]);
34+
}, [isValidConfig]);
3535

3636
return (
3737
<Content>
@@ -46,15 +46,15 @@ const ReportDemo = () => {
4646
key="form"
4747
>
4848
<Form
49-
initalReportProps={initalReportProps}
49+
initialReportProps={initialReportProps}
5050
onSubmit={renderWithReportProps}
5151
onReset={onReset}
5252
/>
5353
</TabPane>
5454
<TabPane
55-
disabled={!isVaildConfig}
55+
disabled={!isValidConfig}
5656
tab={
57-
<Badge dot={isVaildConfig}>
57+
<Badge dot={isValidConfig}>
5858
<span>
5959
<CheckCircleTwoTone twoToneColor="#52c41a" />
6060
Create Report
@@ -63,7 +63,7 @@ const ReportDemo = () => {
6363
}
6464
key="report"
6565
>
66-
{isVaildConfig && (
66+
{isValidConfig && (
6767
<Report
6868
style={{
6969
height: '100%',
@@ -74,7 +74,7 @@ const ReportDemo = () => {
7474
console.log('Report Loaded!');
7575
}}
7676
onRender={(report) => {
77-
console.log('Report Redered!');
77+
console.log('Report Rendered!');
7878
}}
7979
onSave={(data) => {
8080
console.log('Report saved. Event data ', data);

src/docs/Dashboard/Form.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Form, Input, Select } from 'antd';
33
import { layout } from '../styles/formLayoutStyles';
44
import FormButtonGroup from '../common/FormButtonGroup';
55

6-
const DashboardForm = ({ onSubmit, initalDashboardProps, onReset }) => {
6+
const DashboardForm = ({ onSubmit, initialDashboardProps, onReset }) => {
77
const [isSubmit, setIsSubmit] = React.useState(false);
88

99
const onSubmitForm = ({ dashboardProps }) => {
@@ -23,7 +23,7 @@ const DashboardForm = ({ onSubmit, initalDashboardProps, onReset }) => {
2323
colon={false}
2424
name="dashboardProps"
2525
onFinish={onSubmitForm}
26-
initialValues={{ dashboardProps: initalDashboardProps }}
26+
initialValues={{ dashboardProps: initialDashboardProps }}
2727
>
2828
<Form.Item
2929
label="Token Type"
@@ -63,7 +63,7 @@ const DashboardForm = ({ onSubmit, initalDashboardProps, onReset }) => {
6363
<Select placeholder="Page View (optional)">
6464
<Select.Option value="fitToWidth">fitToWidth</Select.Option>
6565
<Select.Option value="oneColumn">oneColumn</Select.Option>
66-
<Select.Option value="actualtSize">actualtSize</Select.Option>
66+
<Select.Option value="actualSize">actualSize</Select.Option>
6767
</Select>
6868
</Form.Item>
6969
<FormButtonGroup isSubmit={isSubmit} onReset={onResetForm} />

src/docs/Dashboard/index.jsx

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

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

1414
const DashboardDemo = () => {
1515
const [dashboardProps, setDashboardProps] = React.useState(
16-
initalDashboardProps
16+
initialDashboardProps
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);
2222

23-
const renderWithDashboardrops = React.useCallback(
23+
const renderWithDashboardProps = React.useCallback(
2424
({ dashboardProps }) => {
2525
setDashboardProps(dashboardProps);
2626
setIsValidConfig(true);
@@ -30,7 +30,7 @@ const DashboardDemo = () => {
3030

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

3535
return (
3636
<Content>
@@ -45,15 +45,15 @@ const DashboardDemo = () => {
4545
key="form"
4646
>
4747
<Form
48-
initalDashboardProps={initalDashboardProps}
49-
onSubmit={renderWithDashboardrops}
48+
initialDashboardProps={initialDashboardProps}
49+
onSubmit={renderWithDashboardProps}
5050
onReset={onReset}
5151
/>
5252
</TabPane>
5353
<TabPane
54-
disabled={!isVaildConfig}
54+
disabled={!isValidConfig}
5555
tab={
56-
<Badge dot={isVaildConfig}>
56+
<Badge dot={isValidConfig}>
5757
<span>
5858
<CheckCircleTwoTone twoToneColor="#52c41a" />
5959
Dashboard
@@ -62,7 +62,7 @@ const DashboardDemo = () => {
6262
}
6363
key="dashboard"
6464
>
65-
{isVaildConfig && (
65+
{isValidConfig && (
6666
<Dashboard
6767
{...dashboardProps}
6868
style={{

src/docs/MultiplePageDemo/Form.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Form, Input, Select } from 'antd';
33
import { layout } from '../styles/formLayoutStyles';
44
import FormButtonGroup from '../common/FormButtonGroup';
55

6-
const ReportForm = ({ onSubmit, initalReportProps, onReset }) => {
6+
const ReportForm = ({ onSubmit, initialReportProps, onReset }) => {
77
const [isSubmit, setIsSubmit] = React.useState(false);
88

99
const onSubmitForm = ({ reportProps }) => {
@@ -24,7 +24,7 @@ const ReportForm = ({ onSubmit, initalReportProps, onReset }) => {
2424
title="Multiple page demo"
2525
name="reportProps"
2626
onFinish={onSubmitForm}
27-
initialValues={{ reportProps: initalReportProps }}
27+
initialValues={{ reportProps: initialReportProps }}
2828
>
2929
<Form.Item
3030
label="Token Type"

src/docs/Report/Form.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { Form, Input, Select } from 'antd';
33
import { layout } from '../styles/formLayoutStyles';
44
import FormButtonGroup from '../common/FormButtonGroup';
55

6-
const ReportForm = ({ onSubmit, initalReportProps, onReset }) => {
6+
const ReportForm = ({ onSubmit, initialReportProps, onReset }) => {
77
const [isSubmit, setIsSubmit] = React.useState(false);
88

9-
const onSumitForm = ({ reportProps }) => {
9+
const onSubmitForm = ({ reportProps }) => {
1010
setIsSubmit(true);
1111
onSubmit({ reportProps });
1212
};
@@ -22,8 +22,8 @@ const ReportForm = ({ onSubmit, initalReportProps, onReset }) => {
2222
size="large"
2323
colon={false}
2424
name="reportProps"
25-
onFinish={onSumitForm}
26-
initialValues={{ reportProps: initalReportProps }}
25+
onFinish={onSubmitForm}
26+
initialValues={{ reportProps: initialReportProps }}
2727
>
2828
<Form.Item
2929
label="Token Type"
@@ -77,7 +77,7 @@ const ReportForm = ({ onSubmit, initalReportProps, onReset }) => {
7777
</Select>
7878
</Form.Item>
7979
<Form.Item name={['reportProps', 'datasetId']} label="Dataset Id">
80-
<Input placeholder="Dataset Id (opional)" />
80+
<Input placeholder="Dataset Id (optional)" />
8181
</Form.Item>
8282
<Form.Item name={['reportProps', 'pageName']} label="Page Name">
8383
<Input placeholder="Page Name (optional)" />

src/docs/Tile/Form.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Form, Input, Select } from 'antd';
33
import { layout } from '../styles/formLayoutStyles';
44
import FormButtonGroup from '../common/FormButtonGroup';
55

6-
const TileForm = ({ onSubmit, initalTileProps, onReset }) => {
6+
const TileForm = ({ onSubmit, initialTileProps, onReset }) => {
77
const [isSubmit, setIsSubmit] = React.useState(false);
88

99
const onSubmitForm = ({ tileProps }) => {
@@ -23,7 +23,7 @@ const TileForm = ({ onSubmit, initalTileProps, onReset }) => {
2323
colon={false}
2424
name="tileProps"
2525
onFinish={onSubmitForm}
26-
initialValues={{ tileProps: initalTileProps }}
26+
initialValues={{ tileProps: initialTileProps }}
2727
>
2828
<Form.Item
2929
label="Token Type"
@@ -56,7 +56,7 @@ const TileForm = ({ onSubmit, initalTileProps, onReset }) => {
5656
{ required: true, message: 'Dashboard Id is required' },
5757
]}
5858
>
59-
<Input placeholder="Dasboard Id" />
59+
<Input placeholder="Dashboard Id" />
6060
</Form.Item>
6161
<Form.Item
6262
name={['tileProps', 'embedId']}

src/docs/Tile/index.jsx

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

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

1414
const TileDemo = () => {
15-
const [tileProps, setTileProps] = React.useState(initalTileProps);
16-
const [isVaildConfig, setIsValidConfig] = React.useState(false);
15+
const [tileProps, setTileProps] = React.useState(initialTileProps);
16+
const [isValidConfig, setIsValidConfig] = React.useState(false);
1717
const [activeTab, setActiveTab] = React.useState('form');
1818

1919
const onTabClick = (key, event) => setActiveTab(key);
@@ -28,7 +28,7 @@ const TileDemo = () => {
2828

2929
const onReset = React.useCallback(() => {
3030
setIsValidConfig(false);
31-
}, [isVaildConfig]);
31+
}, [isValidConfig]);
3232

3333
return (
3434
<Content>
@@ -43,15 +43,15 @@ const TileDemo = () => {
4343
key="form"
4444
>
4545
<Form
46-
initalTileProps={initalTileProps}
46+
initialTileProps={initialTileProps}
4747
onSubmit={renderWithTileProps}
4848
onReset={onReset}
4949
/>
5050
</TabPane>
5151
<TabPane
52-
disabled={!isVaildConfig}
52+
disabled={!isValidConfig}
5353
tab={
54-
<Badge dot={isVaildConfig}>
54+
<Badge dot={isValidConfig}>
5555
<span>
5656
<CheckCircleTwoTone twoToneColor="#52c41a" />
5757
Tile
@@ -60,7 +60,7 @@ const TileDemo = () => {
6060
}
6161
key="tile"
6262
>
63-
{isVaildConfig && (
63+
{isValidConfig && (
6464
<Tile
6565
style={{
6666
height: '100%',

0 commit comments

Comments
 (0)