Skip to content

Commit

Permalink
change import paths from index to respective Button folders
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanWatanabe committed Jun 18, 2021
1 parent 7591bf2 commit a98a9f3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 29 deletions.
4 changes: 2 additions & 2 deletions packages/react-button/src/Button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import { Button, ButtonProps } from './index';
import { Button, ButtonProps } from './components/Button';
import { Playground } from './Playground';
import { PlaygroundProps } from './Playground.types';
import { buttonBaseProps } from './ButtonBaseProps';
import { buttonBaseProps } from './buttonBaseProps';

// TODO: this is here while waiting for react-icons to merge
const SVGIcon = () => (
Expand Down
21 changes: 0 additions & 21 deletions packages/react-button/src/ButtonBaseProps.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions packages/react-button/src/CompoundButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import { CompoundButton, CompoundButtonProps } from './index';
import { buttonBaseProps } from './ButtonBaseProps';
import { CompoundButton, CompoundButtonProps } from './components/CompoundButton';
import { Playground } from './Playground';
import { PlaygroundProps, PropDefinition } from './Playground.types';
import { buttonBaseProps } from './buttonBaseProps';

type ExampleProps = { iconOnly?: string };

Expand Down
4 changes: 2 additions & 2 deletions packages/react-button/src/MenuButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';
import { MenuButton, MenuButtonProps } from './index';
import { Menu, MenuItem, MenuList, MenuProps, MenuTrigger } from '@fluentui/react-menu';
import { buttonBaseProps } from './ButtonBaseProps';
import { MenuButton, MenuButtonProps } from './components/MenuButton';
import { Playground } from './Playground';
import { PlaygroundProps } from './Playground.types';
import { buttonBaseProps } from './buttonBaseProps';

const ExampleMenu = (props: MenuButtonProps): JSX.Element => (
<Menu>
Expand Down
4 changes: 2 additions & 2 deletions packages/react-button/src/ToggleButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';
import { ToggleButton, ToggleButtonProps } from './index';
import { useBoolean } from '@fluentui/react-utilities';
import { buttonBaseProps } from './ButtonBaseProps';
import { ToggleButton, ToggleButtonProps } from './components/ToggleButton';
import { Playground } from './Playground';
import { PlaygroundProps, PropDefinition } from './Playground.types';
import { buttonBaseProps } from './buttonBaseProps';

export const ToggleButtonPlayground = () => {
const [checked, { setTrue: setTrueChecked, setFalse: setFalseChecked, toggle: toggleChecked }] = useBoolean(false);
Expand Down

0 comments on commit a98a9f3

Please sign in to comment.