Skip to content

Commit

Permalink
PR feedback improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
MMeijerink committed Nov 8, 2024
1 parent 9373198 commit dae7a70
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 7 additions & 4 deletions packages/components-react/src/select/Select.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import {
Select as UtrechtSelect,
SelectOption as UtrechtSelectOption,
Select,
SelectOption,
type SelectOptionProps as UtrechtSelectOptionProps,
type SelectProps as UtrechtSelectProps,
} from '@utrecht/component-library-react/dist/css-module';

export type LuxSelectProps = UtrechtSelectProps;
export type LuxSelectOptionProps = UtrechtSelectOptionProps;

export const LuxSelect = UtrechtSelect;
export const LuxSelectOption = UtrechtSelectOption;
Select.displayName = 'LuxSelect';
SelectOption.displayName = 'LuxSelectOption';

export const LuxSelect = Select;
export const LuxSelectOption = SelectOption;
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ const SelectTemplate: Story = {
args: {},
render: ({ ...args }) => (
<LuxSelect {...args}>
{selectOptions &&
selectOptions.length > 0 &&
selectOptions.map(({ label, value, disabled }, index) => (
<LuxSelectOption key={index} value={value} disabled={disabled}>
{label}
</LuxSelectOption>
))}
{selectOptions.map(({ label, value, disabled }, index) => (
<LuxSelectOption key={index} value={value} disabled={disabled}>
{label}
</LuxSelectOption>
))}
</LuxSelect>
),
};
Expand Down

0 comments on commit dae7a70

Please sign in to comment.