Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Fixed "initial" word in vars and typo #7639

Merged
merged 1 commit into from
Aug 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Drawer/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Drawer extends Component<DefaultProps, Props, State> {
state: State = {
// Let's assume that the Drawer will always be rendered on user space.
// We use that state is order to skip the appear transition during the
// inital mount of the component.
// initial mount of the component.
firstMount: true,
};

Expand Down
12 changes: 6 additions & 6 deletions src/styles/themeListener.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import themeListener from './themeListener';
const CHANNEL = 'material-ui';

describe('themeListener', () => {
it('should be able to get the inital state', () => {
it('should be able to get the initial state', () => {
const broadcast = createBroadcast();
const initalState = {};
broadcast.setState(initalState);
const initialState = {};
broadcast.setState(initialState);

assert.strictEqual(
themeListener.initial({
[CHANNEL]: broadcast,
}),
initalState,
initialState,
);
});

Expand All @@ -26,9 +26,9 @@ describe('themeListener', () => {

it('should be able to subscribe to the event stream', done => {
const broadcast = createBroadcast();
const initalState = {};
const initialState = {};
const secondState = {};
broadcast.setState(initalState);
broadcast.setState(initialState);

themeListener.subscribe(
{
Expand Down
6 changes: 3 additions & 3 deletions src/utils/withWidth.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ function withWidth(options = {}) {
}

render() {
const { initalWidth, theme, width, ...other } = this.props;
const { initialWidth, theme, width, ...other } = this.props;
const props = {
width: width || this.state.width || initalWidth,
width: width || this.state.width || initialWidth,
...other,
};

Expand Down Expand Up @@ -132,7 +132,7 @@ function withWidth(options = {}) {
* For instance, you could be using the user-agent or the client-hints.
* http://caniuse.com/#search=client%20hint
*/
initalWidth: PropTypes.oneOf(keys),
initialWidth: PropTypes.oneOf(keys),
/**
* @ignore
*/
Expand Down
4 changes: 2 additions & 2 deletions src/utils/withWidth.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ describe('withWidth', () => {
});
});

describe('prop: initalWidth', () => {
describe('prop: initialWidth', () => {
it('should work as expected', () => {
const element = <EmptyWithWidth initalWidth="lg" />;
const element = <EmptyWithWidth initialWidth="lg" />;

// First mount on the server
const wrapper1 = shallow(element);
Expand Down