Skip to content

Commit

Permalink
Merge pull request #169 from hypothesis/pattern-fixtures
Browse files Browse the repository at this point in the history
Extract some reusable sample components and refactor Dialog examples
  • Loading branch information
lyzadanger authored Aug 11, 2021
2 parents 73494ad + 99f304c commit 6733407
Show file tree
Hide file tree
Showing 4 changed files with 322 additions and 366 deletions.
37 changes: 3 additions & 34 deletions src/pattern-library/components/patterns/ContainerPatterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,7 @@ import Library from '../Library';

import { IconButton, LabeledButton } from '../../../';

function ListElements() {
return (
<>
<li>Alpha</li>
<li>Bravo</li>
<li>Charlie</li>
<li>Delta</li>
<li>Echo</li>
<li>Foxtrot</li>
<li>Golf</li>
<li>Hotel</li>
<li>India</li>
<li>Juliett</li>
<li>Kilo</li>
<li>Lima</li>
<li>Mike</li>
<li>November</li>
<li>Oscar</li>
<li>Papa</li>
<li>Quebec</li>
<li>Romeo</li>
<li>Sierra</li>
<li>Tango</li>
<li>Uniform</li>
<li>Victor</li>
<li>Whiskey</li>
<li>XRay</li>
<li>Yankee</li>
<li>Zulu</li>
</>
);
}
import { SampleListElements } from './samples';

export default function ContainerPatterns() {
const [showModalExample, setShowModalExample] = useState(false);
Expand Down Expand Up @@ -267,7 +236,7 @@ export default function ContainerPatterns() {
<div style="height:250px;width:250px">
<div className="hyp-scrollbox">
<ul className="hyp-u-padding hyp-u-vertical-spacing">
<ListElements />
<SampleListElements />
</ul>
</div>
</div>
Expand All @@ -293,7 +262,7 @@ export default function ContainerPatterns() {
</div>
</div>
<ul className="hyp-u-padding hyp-u-vertical-spacing">
<ListElements />
<SampleListElements />
</ul>
</div>
</div>
Expand Down
Loading

0 comments on commit 6733407

Please sign in to comment.