-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Stack): remove redundant helper functions
- Loading branch information
1 parent
4a28842
commit 84be8c2
Showing
7 changed files
with
36 additions
and
230 deletions.
There are no files selected for viewing
16 changes: 9 additions & 7 deletions
16
packages/orbit-components/src/LinkList/LinkList.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
import * as React from "react"; | ||
import { select } from "@storybook/addon-knobs"; | ||
import { select, boolean } from "@storybook/addon-knobs"; | ||
|
||
import { DIRECTIONS, SPACINGS } from "../utils/layout/consts"; | ||
import TextLink from "../TextLink"; | ||
|
||
import LinkList from "."; | ||
|
||
export default { | ||
title: "Linklist", | ||
title: "LinkList", | ||
}; | ||
|
||
export const Default = () => { | ||
const direction = select("Direction", Object.values(DIRECTIONS), DIRECTIONS.ROW); | ||
const spacing = select("Spacing", Object.values(SPACINGS), SPACINGS.MEDIUM); | ||
const legacy = boolean("Legacy", false); | ||
const indent = boolean("Indent", false); | ||
|
||
return ( | ||
<LinkList direction={direction} spacing={spacing}> | ||
<TextLink type="secondary">Flights</TextLink> | ||
<TextLink type="secondary">Flights</TextLink> | ||
<TextLink type="secondary">Flights</TextLink> | ||
<TextLink type="secondary">Flights</TextLink> | ||
<LinkList direction={direction} spacing={spacing} legacy={legacy} indent={indent}> | ||
<TextLink type="secondary">Flight 1</TextLink> | ||
<TextLink type="secondary">Flight 2</TextLink> | ||
<TextLink type="secondary">Flight 3</TextLink> | ||
<TextLink type="secondary">Flight 4</TextLink> | ||
</LinkList> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
packages/orbit-components/src/Stack/helpers/getChildrenMargin.ts
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
packages/orbit-components/src/Stack/helpers/getDirectionSpacingTemplate.ts
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
packages/orbit-components/src/Stack/helpers/getProperty.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.