Skip to content

Commit b5ae698

Browse files
authored
Merge pull request #54 from forumone/1.x-RC
1.0.6
2 parents e559b3c + e72daec commit b5ae698

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-project",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"private": true,
55
"scripts": {
66
"prepare": "husky install"

services/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-project",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

services/app/source/03-components/StyledSelect/StyledDropdownIndicator.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ import DropdownOption from './DropdownOption';
1010
* @see https://react-select.com/components#replacing-components
1111
* @param props
1212
*/
13-
function StyledDropdownIndicator(
14-
props: DropdownIndicatorProps<
15-
DropdownOption,
16-
boolean,
17-
GroupBase<DropdownOption>
18-
>,
13+
function StyledDropdownIndicator<Option extends DropdownOption>(
14+
props: DropdownIndicatorProps<Option, boolean, GroupBase<Option>>,
1915
) {
2016
return (
2117
<components.DropdownIndicator {...props}>

services/app/source/03-components/StyledSelect/StyledSelect.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ const selectTheme: ThemeConfig = theme => ({
3434
* @see https://react-select.com/typescript
3535
* @param props
3636
*/
37-
function StyledSelect(
38-
props: Props<DropdownOption, boolean, GroupBase<DropdownOption>>,
39-
): JSX.Element {
37+
function StyledSelect<
38+
Option extends DropdownOption,
39+
IsMulti extends boolean = false,
40+
Group extends GroupBase<Option> = GroupBase<Option>,
41+
>(props: Props<Option, IsMulti, Group>): JSX.Element {
4042
return (
4143
<Select
4244
{...props}

0 commit comments

Comments
 (0)