Skip to content

Commit 9d234d6

Browse files
committed
-> dropdown
1 parent a4dfbcc commit 9d234d6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/ui-components/Common/StatelessSelect/index.module.css renamed to packages/ui-components/Common/Dropdown/index.module.css

File renamed without changes.

packages/ui-components/Common/StatelessSelect/index.stories.tsx renamed to packages/ui-components/Common/Dropdown/index.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { Meta as MetaObj, StoryObj } from '@storybook/react';
22

3-
import StatelessSelect from '.';
3+
import Dropdown from '.';
44

5-
type Story = StoryObj<typeof StatelessSelect>;
6-
type Meta = MetaObj<typeof StatelessSelect>;
5+
type Story = StoryObj<typeof Dropdown>;
6+
type Meta = MetaObj<typeof Dropdown>;
77

88
// Basic example with default anchor links
99
export const Default: Story = {
@@ -19,7 +19,7 @@ export const Default: Story = {
1919
};
2020

2121
export default {
22-
component: StatelessSelect,
22+
component: Dropdown,
2323
decorators: [
2424
Story => (
2525
<div className="flex h-screen items-center justify-center">

packages/ui-components/Common/StatelessSelect/index.tsx renamed to packages/ui-components/Common/Dropdown/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import type { LinkLike } from '#ui/types.js';
55

66
import styles from './index.module.css';
77

8-
type StatelessSelectProps = ComponentProps<'div'> & {
8+
type DropdownProps = ComponentProps<'div'> & {
99
label: string;
1010
values: Array<HTMLProps<HTMLAnchorElement | HTMLDivElement>>;
1111
as?: LinkLike;
1212
};
1313

14-
const StatelessSelect: FC<PropsWithChildren<StatelessSelectProps>> = ({
14+
const Dropdown: FC<PropsWithChildren<DropdownProps>> = ({
1515
values = [],
1616
className,
1717
as: As = 'a',
@@ -59,4 +59,4 @@ const StatelessSelect: FC<PropsWithChildren<StatelessSelectProps>> = ({
5959
</div>
6060
);
6161

62-
export default StatelessSelect;
62+
export default Dropdown;

0 commit comments

Comments
 (0)