Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 36e6b67

Browse files
author
Per Nilsson
committed
Rename InputControl -> Input
1 parent 10f0970 commit 36e6b67

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/InputControl.react.js renamed to src/components/Input.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, {Component, PropTypes} from 'react';
33
/*
44
* A controlled input that calls `valueChanged` on changes.
55
*/
6-
export default class InputControl extends Component {
6+
export default class Input extends Component {
77
constructor() {
88
super()
99
this.state = {
@@ -27,14 +27,14 @@ export default class InputControl extends Component {
2727
}
2828
}
2929

30-
InputControl.propTypes = {
30+
Input.propTypes = {
3131

3232
/**
3333
* Function that updates the state tree.
3434
*/
3535
valueChanged: PropTypes.func
3636
};
3737

38-
InputControl.defaultProps = {
38+
Input.defaultProps = {
3939
valueChanged: () => {}
4040
};

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import Radium from 'radium';
22

33
import _EditableDiv from './components/EditableDiv.react';
44
import Header from './components/Header.react';
5-
import InputControl from './components/InputControl.react';
5+
import Input from './components/Input.react';
66

77
const EditableDiv = Radium(_EditableDiv);
88

99
export {
1010
EditableDiv,
1111
Header,
12-
InputControl
12+
Input
1313
};

0 commit comments

Comments
 (0)