Skip to content

Commit e667aef

Browse files
committed
make naming non confusing
1 parent c644970 commit e667aef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/App/Navigation/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import './style.css';
99

1010
const Navigation = ({
1111
location: { pathname },
12-
initialValue,
12+
organizationName,
1313
onOrganizationSearch,
1414
}) => (
1515
<header className="Navigation">
@@ -22,7 +22,7 @@ const Navigation = ({
2222

2323
{pathname === routes.ORGANIZATION && (
2424
<OrganizationSearch
25-
initialValue={initialValue}
25+
organizationName={organizationName}
2626
onOrganizationSearch={onOrganizationSearch}
2727
/>
2828
)}
@@ -31,7 +31,7 @@ const Navigation = ({
3131

3232
class OrganizationSearch extends React.Component {
3333
state = {
34-
value: this.props.initialValue,
34+
value: this.props.organizationName,
3535
};
3636

3737
onChange = event => {

src/App/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class App extends Component {
1717
organizationName: ORGANIZATION_NAME_DEFAULT,
1818
};
1919

20-
onSubmit = value => {
20+
onOrganizationSearch = value => {
2121
this.setState({ organizationName: value });
2222
};
2323

@@ -28,8 +28,8 @@ class App extends Component {
2828
<Router>
2929
<div className="App">
3030
<Navigation
31-
initialValue={organizationName}
32-
onOrganizationSearch={this.onSubmit}
31+
organizationName={organizationName}
32+
onOrganizationSearch={this.onOrganizationSearch}
3333
/>
3434

3535
<div className="App-main">

0 commit comments

Comments
 (0)