mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
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
|
||||
*/
|
||||
const CloseButton = props => (
|
||||
const CloseButton = props =>
|
||||
<StyledCloseButton {...props}>
|
||||
<CloseIcon />
|
||||
</StyledCloseButton>
|
||||
);
|
||||
</StyledCloseButton>;
|
||||
|
||||
export default CloseButton;
|
||||
|
@ -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">
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user