Skip to content

Commit 4af5fff

Browse files
Fix CommonJS constant import
INPUT and NAVIGATION
1 parent 41ffa47 commit 4af5fff

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

components/input/__docs__/storybook-stories.jsx

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 { storiesOf, action } from '@storybook/react';
33

4-
import { FORMS_INPUT } from '../../../utilities/constants';
4+
import { INPUT } from '../../../utilities/constants';
55
import Button from '../../button';
66
import IconSettings from '../../icon-settings';
77
import Input from '../';
@@ -38,7 +38,7 @@ const searchIconClickable = (
3838
/>
3939
);
4040

41-
storiesOf(FORMS_INPUT, module)
41+
storiesOf(INPUT, module)
4242
.addDecorator((getStory) => (
4343
<div className="slds-p-around--medium">{getStory()}</div>
4444
))

components/input/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import Label from '../utilities/label';
3434
// This component's `checkProps` which issues warnings to developers about properties when in development mode (similar to React's built in development tools)
3535
import checkProps from './check-props';
3636

37-
import { FORMS_INPUT } from '../../utilities/constants';
37+
import { INPUT } from '../../utilities/constants';
3838

3939
const defaultProps = {
4040
assistiveText: {
@@ -47,7 +47,7 @@ const defaultProps = {
4747
* The HTML `input` with a label and error messaging.
4848
*/
4949
const Input = createReactClass({
50-
displayName: FORMS_INPUT,
50+
displayName: INPUT,
5151

5252
propTypes: {
5353
/**

components/navigation/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// Alias
55
import VerticalNavigation from '../vertical-navigation';
66
import componentHasMoved from '../../utilities/warning/component-has-moved';
7-
import { NAVIGATION } from '../../utilities/constants';
7+
import { VERTICAL_NAVIGATION } from '../../utilities/constants';
88

9-
componentHasMoved(NAVIGATION, {
9+
componentHasMoved(VERTICAL_NAVIGATION, {
1010
oldFileLocation: 'components/navigation',
1111
newFileLocation: 'components/vertical-navigation',
1212
});

utilities/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const DIALOG = 'SLDSDialog';
3535
export const FILTER = 'SLDSFilter';
3636
export const FORMS_CHECKBOX = 'SLDSCheckbox';
3737
export const FORMS_INLINE_EDIT = 'SLDSInlineEdit';
38-
export const FORMS_INPUT = 'SLDSInput';
38+
export const INPUT = 'SLDSInput';
3939
export const FORMS_TEXTAREA = 'SLDSTextarea';
4040
export const FORMS_SEARCH = 'SLDSSearch';
4141
export const GLOBAL_HEADER = 'SLDSGlobalHeader';

0 commit comments

Comments
 (0)