From 2018a6778ed112e6898e677ead4b1d4a336b9185 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Sat, 9 Jan 2016 16:15:03 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BE=D1=80=D0=BC=D0=B0=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/auth/SignIn.jsx | 12 ++++---- src/components/ui/Form.jsx | 13 ++++---- src/components/ui/buttons.scss | 8 ++--- src/components/ui/form.scss | 56 ++++++++++++++++++++++++++-------- 4 files changed, 61 insertions(+), 28 deletions(-) diff --git a/src/components/auth/SignIn.jsx b/src/components/auth/SignIn.jsx index 2c68b62..3bb1392 100644 --- a/src/components/auth/SignIn.jsx +++ b/src/components/auth/SignIn.jsx @@ -149,15 +149,15 @@ export default class SignIn extends Component { }> {/* TODO: E-mail i18n*/} - + {/* TODO: E-mail i18n*/} - + {/* TODO: Account password i18n*/} - + {/* TODO: Account password i18n*/} - + - @@ -194,7 +194,7 @@ export default class SignIn extends Component {
{/* TODO: E-mail i18n*/} - +
diff --git a/src/components/ui/Form.jsx b/src/components/ui/Form.jsx index da93a35..0f5c3e7 100644 --- a/src/components/ui/Form.jsx +++ b/src/components/ui/Form.jsx @@ -6,23 +6,24 @@ import icons from './icons.scss'; import styles from './form.scss'; export function Input(props) { + var { icon, color = 'green' } = props; + props = { type: 'text', ...props }; var baseClass = styles.formRow; - var icon; - if (props.icon) { + if (icon) { baseClass = styles.formIconRow; icon = ( -
+
); } return (
- + {icon}
); @@ -32,10 +33,10 @@ export class Checkbox extends Component { displayName = 'Checkbox'; render() { - var { label } = this.props; + var { label, color = 'green' } = this.props; return ( -
+