CLLLEANED the forms, inputs, buttons, labels and form/button groups

This commit is contained in:
2018-10-25 06:46:38 +11:00
parent 13aaccdd84
commit bccbd1cff1
25 changed files with 294 additions and 334 deletions

View File

@ -23,13 +23,9 @@
import React from 'react';
export default function(props) {
export default props => {
let clazz = "o-label";
if(props.className) clazz += " " + props.className;
if(props.className) clazz += ` ${props.className}`;
return (
<label htmlFor={ props.htmlFor } className={clazz}>
{ props.children }
</label>
);
return <label {...props} className={clazz} />;
}