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 * @example ./usage.md
*/ */
const CloseButton = props => ( const CloseButton = props =>
<StyledCloseButton {...props}> <StyledCloseButton {...props}>
<CloseIcon /> <CloseIcon />
</StyledCloseButton> </StyledCloseButton>;
);
export default CloseButton; export default CloseButton;

View File

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

View File

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