test(joyent-ui-toolkit): format with prettier
This commit is contained in:
parent
487e96e261
commit
dc5cd78f50
@ -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;
|
||||||
|
@ -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">
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user