Skip to content

Commit

Permalink
Updated constants structure for button to remove
Browse files Browse the repository at this point in the history
require cycles
  • Loading branch information
brianacnguyen committed Jul 14, 2023
1 parent a516b54 commit 179e2be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,7 @@
import { SAMPLE_BUTTONSECONDARY_PROPS } from './variants/ButtonSecondary/ButtonSecondary.constants';

// Internal dependencies.
import {
ButtonSize,
ButtonWidthTypes,
ButtonProps,
ButtonVariants,
} from './Button.types';

// Defaults
export const DEFAULT_BUTTON_SIZE = ButtonSize.Md;
export const DEFAULT_BUTTON_WIDTH = ButtonWidthTypes.Auto;
import { ButtonProps, ButtonVariants } from './Button.types';

// Samples
export const SAMPLE_BUTTON_PROPS: ButtonProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/* eslint-disable no-console */
/* eslint-disable import/prefer-default-export */
// External dependencies.
import {
DEFAULT_BUTTON_SIZE,
DEFAULT_BUTTON_WIDTH,
} from '../../Button.constants';
import { ButtonBaseProps } from './ButtonBase.types';
import { IconName, IconSize } from '../../../../Icons/Icon';
import { ButtonSize, ButtonWidthTypes } from '../../Button.types';

// Defaults
export const DEFAULT_BUTTONBASE_SIZE = DEFAULT_BUTTON_SIZE;
export const DEFAULT_BUTTONBASE_WIDTH = DEFAULT_BUTTON_WIDTH;
export const DEFAULT_BUTTONBASE_SIZE = ButtonSize.Md;
export const DEFAULT_BUTTONBASE_WIDTH = ButtonWidthTypes.Auto;
export const DEFAULT_BUTTONBASE_ICON_SIZE = IconSize.Sm;

// Samples
Expand Down

0 comments on commit 179e2be

Please sign in to comment.