File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
packages/ui-components/Common/Dropdown Expand file tree Collapse file tree 3 files changed +7
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 11import 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
99export const Default : Story = {
@@ -19,7 +19,7 @@ export const Default: Story = {
1919} ;
2020
2121export default {
22- component : StatelessSelect ,
22+ component : Dropdown ,
2323 decorators : [
2424 Story => (
2525 < div className = "flex h-screen items-center justify-center" >
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ import type { LinkLike } from '#ui/types.js';
55
66import 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 ;
You can’t perform that action at this time.
0 commit comments