Skip to content

Commit

Permalink
add id's (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybaidiuk committed Nov 5, 2023
1 parent 5d8386d commit 0d56f5a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/client/src/components/select/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useId } from 'react';
import ReactSelect from 'react-select';
import styled, { css } from 'styled-components';
import {
Expand All @@ -7,7 +7,7 @@ import {
inputBorderColor,
themeColors,
selectColors,
} from '../../../src/styles/Themes';
} from '../../styles/Themes';

type WrapperProps = {
maxWidth?: string;
Expand Down Expand Up @@ -115,6 +115,7 @@ export const Select = ({
return (
<StyledWrapper maxWidth={maxWidth} fullWidth={true}>
<StyledSelect
instanceId={useId()}
isMulti={isMulti}
classNamePrefix={'Select'}
options={options}
Expand Down Expand Up @@ -151,6 +152,7 @@ export const SelectWithValue = ({
return (
<StyledWrapper maxWidth={maxWidth} fullWidth={true}>
<StyledSelect
instanceId={useId()}
isMulti={isMulti}
classNamePrefix={'Select'}
options={options}
Expand Down Expand Up @@ -180,6 +182,7 @@ export const SmallSelectWithValue = ({
return (
<StyledWrapper maxWidth={maxWidth} fullWidth={true}>
<StyledSmallSelect
instanceId={useId()}
isMulti={isMulti}
classNamePrefix={'Select'}
options={options}
Expand Down

0 comments on commit 0d56f5a

Please sign in to comment.