Skip to content

Commit

Permalink
test: fix lint warning of unescaped single quote (#1708)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmoai authored Jun 29, 2021
1 parent c3f8248 commit 963ec24
Showing 1 changed file with 15 additions and 35 deletions.
50 changes: 15 additions & 35 deletions src/components/LineClamp/LineClamp.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ import { PrimaryButton } from '../Button'
import { LineClamp } from './LineClamp'
import readme from './README.md'

const longText = `
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged. It was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and more recently
with desktop publishing software like Aldus PageMaker including versions of Lorem
Ipsum.`

storiesOf('LineClamp', module)
.addParameters({
readme: {
Expand All @@ -20,60 +30,30 @@ storiesOf('LineClamp', module)
<dt>Default</dt>
<dd>
<Text>
<LineClamp>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged. It was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and more recently
with desktop publishing software like Aldus PageMaker including versions of Lorem
Ipsum.
</LineClamp>
<LineClamp>{longText}</LineClamp>
</Text>
</dd>
<dt>Max Lines 1 / with Light Tooltip</dt>
<dd>
<Text>
<LineClamp maxLines={1} withTooltip>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged. It was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and more recently
with desktop publishing software like Aldus PageMaker including versions of Lorem
Ipsum.
{longText}
</LineClamp>
</Text>
</dd>
<dt>Max Lines 2 / with Light Tooltip</dt>
<dd>
<Text>
<LineClamp maxLines={2} withTooltip>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged. It was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and more recently
with desktop publishing software like Aldus PageMaker including versions of Lorem
Ipsum.
{longText}
</LineClamp>
</Text>
</dd>
<dt>Max Lines 4 / with Dark Tooltip</dt>
<dd>
<Text>
<LineClamp maxLines={4} toolTipType="dark" withTooltip>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged. It was popularised in the 1960s with
the release of Letraset sheets containing Lorem Ipsum passages, and more recently
with desktop publishing software like Aldus PageMaker including versions of Lorem
Ipsum.
{longText}
</LineClamp>
</Text>
</dd>
Expand All @@ -82,7 +62,7 @@ storiesOf('LineClamp', module)
<Button>
<LineClamp maxLines={1} toolTipType="dark" withTooltip>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
Ipsum has been the industry's standard dummy text ever since the 1500s.
Ipsum has been the industry&apos;s standard dummy text ever since the 1500s.
</LineClamp>
</Button>
</dd>
Expand Down

0 comments on commit 963ec24

Please sign in to comment.