Skip to content

Commit 7fb87ab

Browse files
author
Taushanova-Atanasova, Inna
committed
improves import statements
1 parent dc3cfe6 commit 7fb87ab

26 files changed

+818
-925
lines changed

src/ActionBar/ActionBar.Component.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
2-
import { ActionBar, ActionBarBack, ActionBarHeader, ActionBarActions } from '../';
3-
import { Button, Popover, Menu, MenuList, MenuItem } from '../';
2+
import { ActionBar, ActionBarBack, ActionBarHeader, ActionBarActions, Button, Popover, Menu, MenuList, MenuItem } from '../';
43
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties } from '../';
54

65
export const ActionBarComponent = () => {

src/Alert/Alert.Component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Alert } from '../';
3-
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties } from '../';
4-
import { Playground } from '../documentation/Playground/Playground';
3+
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties, Playground } from '../';
4+
55

66
export const AlertComponent = () => {
77
const defaultAlertCode = `<Alert dismissable link="#" linkText="link">Default alert with a </Alert>`;

src/Badge/Badge.Component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {
77
Header,
88
Description,
99
Import,
10-
Properties
10+
Properties,
11+
Playground
1112
} from '../';
12-
import { Playground } from '../documentation/Playground/Playground';
1313

1414
export const BadgeComponent = () => {
1515
const defaultBadgeCode = `<Badge>Default</Badge>

src/Button/Button.Component.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import { Button, ButtonGroup } from '../';
3-
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties } from '../';
4-
import { Playground } from '../documentation/Playground/Playground';
3+
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties, Playground } from '../';
54

65
export const ButtonComponent = () => {
76
const buttonOptionsCode = `<Button option="emphasized" onclick={() => clickBtnHandler('Emphasized')}>

src/ComboboxInput/ComboboxInput.Component.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
2-
import {} from '../';
3-
import { DocsTile, DocsText, Separator, Header, Import, Properties } from '..';
4-
import { Menu, MenuItem, MenuList, ComboboxInput } from '..';
2+
import { DocsTile, DocsText, Separator, Header, Import, Properties } from '../';
3+
import { Menu, MenuItem, MenuList, ComboboxInput } from '../';
54

65
export const ComboboxInputComponent = () => {
76
const comboboxInputCode = `<ComboboxInput

src/ContextualMenu/ContextualMenu.Component.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React from 'react';
2-
import { DocsTile, DocsText, Separator, Header, Description } from '..';
3-
import { Popover, Button, Menu, MenuList, MenuItem } from '..';
2+
import { DocsTile, DocsText, Separator, Header, Description } from '../';
3+
import { Popover, Button, Menu, MenuList, MenuItem } from '../';
44

55
export const ContextualMenuComponent = () => {
6-
76
const contextualMenuIconCode = `<Popover
87
control={<Button option="light" glyph="vertical-grip" />}
98
noArrow
@@ -49,13 +48,15 @@ export const ContextualMenuComponent = () => {
4948
}
5049
/>`;
5150

52-
5351
return (
5452
<div>
5553
<Header>Contextual Menu</Header>
5654
<Description>
57-
The contextual menu component is an opinionated composition of the “Popover” and “Menu” components with the use of a styled button (Button component). A More icon (glyph="vertical-grip") or the word, “More”, is used to indicate there are more options than room to display them. On click or tap, a contextual menu opens. <br />
58-
This component is completely composed from other components CSS and doesn’t have any of its own.
55+
The contextual menu component is an opinionated composition of the “Popover” and “Menu” components with
56+
the use of a styled button (Button component). A More icon (glyph="vertical-grip") or the word, “More”,
57+
is used to indicate there are more options than room to display them. On click or tap, a contextual menu
58+
opens. <br />
59+
This component is completely composed from other components CSS and doesn’t have any of its own.
5960
</Description>
6061

6162
<Separator />
@@ -80,7 +81,6 @@ export const ContextualMenuComponent = () => {
8081
<DocsText>{contextualMenuIconCode}</DocsText>
8182
<Separator />
8283

83-
8484
<h2>With Text Button</h2>
8585
<DocsTile centered>
8686
<Popover
@@ -115,7 +115,6 @@ export const ContextualMenuComponent = () => {
115115
</DocsTile>
116116
<DocsText>{contextualMenuMoreTextCode}</DocsText>
117117
<Separator />
118-
119118
</div>
120119
);
121120
};

src/Dropdown/Dropdown.Component.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
2-
import { Dropdown } from '../';
32
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties } from '../';
4-
import { Popover, Button, Menu, MenuList, MenuItem } from '../';
3+
import { Dropdown, Popover, Button, Menu, MenuList, MenuItem } from '../';
54

65
export const DropdownComponent = () => {
76
const defaultDropdownCode = `<Dropdown>
@@ -343,7 +342,7 @@ export const DropdownComponent = () => {
343342
<MenuItem url="/">Option 4</MenuItem>
344343
</MenuList>
345344
</Menu>
346-
}
345+
}
347346
/>
348347
</Dropdown>
349348
</DocsTile>

src/Icon/Icon.Component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {
77
Header,
88
Description,
99
Import,
10-
Properties
10+
Properties,
11+
Playground
1112
} from '../';
12-
import { Playground } from '../documentation/Playground/Playground';
1313

1414
export const IconComponent = () => {
1515
const iconsCode = `<Icon glyph="cart" size="s" />

src/Identifier/Identifier.Component.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react'
22
import { Identifier } from '../'
3-
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties } from '../'
4-
import { Playground } from '../documentation/Playground/Playground';
3+
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties, Playground } from '../'
54

65

76
export const IdentifierComponent = () => {

src/Image/Image.Component.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import { Image } from '../';
3-
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties } from '../';
4-
import { Playground } from '../documentation/Playground/Playground';
3+
import { DocsTile, DocsText, Separator, Header, Description, Import, Properties, Playground } from '../';
54

65
export const ImageComponent = () => {
76
const sizesImageCode = `<Image size="s" photo="https://placeimg.com/400/400/nature"></Image>

0 commit comments

Comments
 (0)