Skip to content

Commit

Permalink
renaming variant files
Browse files Browse the repository at this point in the history
  • Loading branch information
eniomoura committed Jun 6, 2024
1 parent 7637031 commit 2e0954b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/gestalt/src/ButtonToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { forwardRef, ReactElement, useImperativeHandle, useRef } from 'react';
import classnames from 'classnames';
import styles from './ButtonToggle.css';
import ColorPickerButton from './ButtonToggle/ColorPickerButton';
import ThumbnailButton from './ButtonToggle/ThumbnailButton';
import ColorPicker from './ButtonToggle/ColorPicker';
import LabeledThumbnail from './ButtonToggle/LabeledThumbnail';
import { useColorScheme } from './contexts/ColorSchemeProvider';
import { useGlobalEventsHandlerContext } from './contexts/GlobalEventsHandlerProvider';
import Flex from './Flex';
Expand Down Expand Up @@ -199,7 +199,7 @@ const ButtonToggleWithForwardRef = forwardRef<HTMLButtonElement, Props>(function
onTouchStart={handleTouchStart}
type="button"
>
<ColorPickerButton colors={color} selected={selected} size={size} />
<ColorPicker colors={color} selected={selected} size={size} />
</button>
);
}
Expand Down Expand Up @@ -241,7 +241,7 @@ const ButtonToggleWithForwardRef = forwardRef<HTMLButtonElement, Props>(function

const renderContent = () => {
if (thumbnail) {
return <ThumbnailButton text={text} textColor={textColor} thumbnail={thumbnail} />;
return <LabeledThumbnail text={text} textColor={textColor} thumbnail={thumbnail} />;
}
return (
<Flex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type Props = {
size: 'sm' | 'md' | 'lg';
};

export default function ColorPickerButton({ colors, selected, size }: Props) {
export default function ColorPicker({ colors, selected, size }: Props) {
const filtersContainerHeightPx = heights[size] + BORDER_OFFSET_PX * 2;
const filtersContainerWidthPx = widths[size] + BORDER_OFFSET_PX * 2;
const [hovered, setHovered] = useState(false);
Expand Down

0 comments on commit 2e0954b

Please sign in to comment.