-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react'; | ||
import withReact from '../../js/with-react'; | ||
import AXAHeader from '../../components/o-header'; | ||
import AXAHeaderMain from '../../components/m-header-main'; | ||
import AXAHeaderLogo from '../../components/m-header-logo'; | ||
|
||
const withReactBound = withReact(React); | ||
const AXAHeaderReact = withReactBound(AXAHeader); | ||
const AXAHeaderMainReact = withReactBound(AXAHeaderMain); | ||
const AXAHeaderLogoReact = withReactBound(AXAHeaderLogo); | ||
|
||
const TodoHeader = ({ | ||
newTodo, | ||
handleNewTodoKeyDown, | ||
handleChange, | ||
}) => ( | ||
<AXAHeaderReact> | ||
<AXAHeaderMainReact firstLeft> | ||
<AXAHeaderLogoReact /> | ||
<h1 className="m-todo-header__title">Todos</h1> | ||
<input | ||
className="m-todo-header__new" | ||
placeholder="What needs to be done?" | ||
value={newTodo} | ||
onKeyDown={handleNewTodoKeyDown} | ||
onChange={handleChange} | ||
autoFocus={true} | ||
/> | ||
</AXAHeaderMainReact> | ||
</AXAHeaderReact> | ||
); | ||
|
||
export default TodoHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters