Last active
August 6, 2016 17:04
-
-
Save mikeyamadeo/bef000086f104430203afd68b50d4bc9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import { StyleSheet, css } from 'aphrodite' | |
import { colors, spacing } from 'App/style/settings' | |
import Btn from 'App/shared/atm.Btn' | |
import Input from 'App/shared/atm.Input' | |
const styles = StyleSheet.create({ | |
container: { | |
display: 'flex', | |
align: 'center', | |
padding: spacing.default | |
}, | |
label: { | |
color: colors.secondary | |
}, | |
space: { | |
marginRight: spacing.tiny | |
} | |
}) | |
const SearchUI = ({inputVal, onInputUpdate, onSearch}) => | |
<div className={css(styles.container)}> | |
<div className={css(style.space)}> | |
<label className={css(style.label)}>Search</label> | |
<Input value={inputVal} onChange={onInputUpdate} /> | |
</div> | |
<Btn onClick={onSearch}>Search</Btn> | |
<div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment