test(joyent-ui-toolkit): format with prettier

This commit is contained in:
Sérgio Ramos 2017-06-16 23:34:30 +01:00
parent 487e96e261
commit dc5cd78f50
3 changed files with 6 additions and 9 deletions

View File

@ -26,10 +26,9 @@ const StyledCloseButton = Button.extend`
/**
* @example ./usage.md
*/
const CloseButton = props => (
const CloseButton = props =>
<StyledCloseButton {...props}>
<CloseIcon />
</StyledCloseButton>
);
</StyledCloseButton>;
export default CloseButton;

View File

@ -22,7 +22,7 @@ const StyledNumberInput = styled(Baseline(BaseInput(Stylable('input'))))`
* @example ./usage-number-input.md
*/
const NumberInput = ({ value, ...rest }) => {
const render = value => (
const render = value =>
<StyledContainer>
<StyledNumberInput value={value} />
<IconButton onClick={() => {}}>
@ -31,8 +31,7 @@ const NumberInput = ({ value, ...rest }) => {
<IconButton onClick={() => {}}>
<PlusIcon verticalAlign="middle" />
</IconButton>
</StyledContainer>
);
</StyledContainer>;
return (
<Subscriber channel="input-group">

View File

@ -74,13 +74,12 @@ const StyledDiv = styled.div`
/**
* @example ./usage.md
*/
const IconButton = ({ children, onClick }) => (
const IconButton = ({ children, onClick }) =>
<StyledIconButton onClick={onClick}>
<StyledDiv>
{children}
</StyledDiv>
</StyledIconButton>
);
</StyledIconButton>;
IconButton.propTypes = {
children: PropTypes.node,