Skip to content

Commit

Permalink
Remove key and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jaalah authored and abailly-akamai committed Sep 1, 2023
1 parent 2f42f46 commit 4dbe4ef
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ const getRegionsOptions = (
});
};

// Story Config ========================================================

const meta: Meta<EnhancedAutocompleteProps<OptionType>> = {
argTypes: {
onSelectionChange: {
Expand All @@ -111,6 +113,10 @@ const meta: Meta<EnhancedAutocompleteProps<OptionType>> = {

export default meta;

type Story = StoryObj<typeof Autocomplete>;

// Styled Components =================================================

const CustomValue = styled('span')(({ theme }) => ({
fontFamily: theme.font.bold,
fontSize: '1rem',
Expand Down Expand Up @@ -143,7 +149,7 @@ const GroupItems = styled('ul')({
padding: 0,
});

type Story = StoryObj<typeof Autocomplete>;
// Story Definitions ==========================================================

export const Default: Story = {
args: {
Expand Down Expand Up @@ -175,7 +181,7 @@ export const Regions: Story = {
),
renderOption: (props, option, { selected }) => {
return (
<StyledListItem {...props} key={option.value}>
<StyledListItem {...props}>
<Box alignItems={'center'} flexGrow={1}>
<StyledFlag>{option.data.flag}</StyledFlag>
{option.label}
Expand Down

0 comments on commit 4dbe4ef

Please sign in to comment.