mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 09:39:09 +00:00
chore: update prettier tab width for consistency (#175)
This commit is contained in:
parent
a931f8c69c
commit
f24d2fcc99
247 changed files with 7224 additions and 7375 deletions
|
@ -2,12 +2,12 @@ import { SmallTitle } from '@roleypoly/design-system/atoms/typography';
|
|||
import { Collapse } from './Collapse';
|
||||
|
||||
export default {
|
||||
title: 'Atoms/Collapse',
|
||||
component: Collapse,
|
||||
title: 'Atoms/Collapse',
|
||||
component: Collapse,
|
||||
};
|
||||
|
||||
export const collapse = (args) => (
|
||||
<SmallTitle>
|
||||
Hello, <Collapse {...args}>small</Collapse> world!
|
||||
</SmallTitle>
|
||||
<SmallTitle>
|
||||
Hello, <Collapse {...args}>small</Collapse> world!
|
||||
</SmallTitle>
|
||||
);
|
||||
|
|
|
@ -2,9 +2,9 @@ import styled, { css } from 'styled-components';
|
|||
import { onSmallScreen } from '../breakpoints';
|
||||
|
||||
export const Collapse = styled.span<{ preventCollapse?: boolean }>`
|
||||
${(props) =>
|
||||
!props.preventCollapse &&
|
||||
onSmallScreen(css`
|
||||
display: none;
|
||||
`)}
|
||||
${(props) =>
|
||||
!props.preventCollapse &&
|
||||
onSmallScreen(css`
|
||||
display: none;
|
||||
`)}
|
||||
`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue