Skip to content

Commit ae2fe17

Browse files
Warning: Add has moved warning to 6 components
1 parent 8d91684 commit ae2fe17

File tree

6 files changed

+37
-0
lines changed

6 files changed

+37
-0
lines changed

components/bread-crumb/index.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33

44
// Alias
55
import Breadcrumb from '../breadcrumb';
6+
import componentHasMoved from '../../utilities/warning/component-has-moved';
7+
8+
componentHasMoved('SLDSBreadCrumb', {
9+
oldFileLocation: 'components/bread-crumb',
10+
newFileLocation: 'components/breadcrumb',
11+
});
612

713
export default Breadcrumb;

components/forms/input/index.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33

44
// Alias
55
import Input from '../../input';
6+
import componentHasMoved from '../../../utilities/warning/component-has-moved';
7+
8+
componentHasMoved('SLDSInput', {
9+
oldFileLocation: 'components/forms/input',
10+
newFileLocation: 'components/input',
11+
});
612

713
export default Input;

components/forms/radio/index.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33

44
// Alias
55
import Radio from '../../radio';
6+
import componentHasMoved from '../../../utilities/warning/component-has-moved';
7+
8+
componentHasMoved('SLDSRadio', {
9+
oldFileLocation: 'components/forms/radio',
10+
newFileLocation: 'components/radio',
11+
});
612

713
export default Radio;

components/forms/textarea/index.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33

44
// Alias
55
import TextArea from '../../textarea';
6+
import componentHasMoved from '../../../utilities/warning/component-has-moved';
7+
8+
componentHasMoved('SLDSTextArea', {
9+
oldFileLocation: 'components/forms/textarea',
10+
newFileLocation: 'components/textarea',
11+
});
612

713
export default TextArea;

components/navigation/index.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33

44
// Alias
55
import VerticalNavigation from '../vertical-navigation';
6+
import componentHasMoved from '../../utilities/warning/component-has-moved';
7+
8+
componentHasMoved('SLDSNavigation', {
9+
oldFileLocation: 'components/navigation',
10+
newFileLocation: 'components/vertical-navigation',
11+
});
612

713
export default VerticalNavigation;

components/popover-tooltip/index.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@
44
// Alias
55
import Tooltip from '../tooltip';
66

7+
import componentHasMoved from '../../utilities/warning/component-has-moved';
8+
9+
componentHasMoved('SLDSPopoverTooltip', {
10+
oldFileLocation: 'components/popover-tooltip',
11+
newFileLocation: 'components/tooltip',
12+
});
13+
714
export default Tooltip;

0 commit comments

Comments
 (0)