File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import './style.css';
99
1010const 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
3232class OrganizationSearch extends React . Component {
3333 state = {
34- value : this . props . initialValue ,
34+ value : this . props . organizationName ,
3535 } ;
3636
3737 onChange = event => {
Original file line number Diff line number Diff 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" >
You can’t perform that action at this time.
0 commit comments