Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump react-select from 5.8.2 to 5.8.3 in /ui #6307

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"react-linkify": "0.2.2",
"react-media-hook": "0.5.0",
"react-range": "1.10.0",
"react-select": "5.8.2",
"react-select": "5.8.3",
"react-transition-group": "4.4.5",
"typeface-open-sans": "1.1.13"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FC } from "react";

import { observer } from "mobx-react-lite";

import Select from "react-select";
import Select, { OnChangeValue } from "react-select";

import type { OptionT } from "Common/Select";
import type { Settings, CollapseStateT } from "Stores/Settings";
Expand Down Expand Up @@ -44,7 +44,7 @@ const AlertGroupCollapseConfiguration: FC<{
settingsStore.alertGroupConfig.config.defaultCollapseState,
)}
options={Object.values(settingsStore.alertGroupConfig.options)}
onChange={(option) =>
onChange={(option: OnChangeValue<OptionT, false>) =>
onCollapseChange((option as OptionT).value as CollapseStateT)
}
hideSelectedOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type { Settings } from "Stores/Settings";
import { ThemeContext } from "Components/Theme";
import { AnimatedMenu } from "Components/Select";
import { NewLabelName, StringToOption, OptionT } from "Common/Select";
import { OnChangeValue } from "react-select";

const disabledLabel = "Disable multi-grid";

Expand Down Expand Up @@ -54,7 +55,7 @@ const GridLabelName: FC<{
]
: staticValues
}
onChange={(option) => {
onChange={(option: OnChangeValue<OptionT, false>) => {
settingsStore.multiGridConfig.setGridLabel((option as OptionT).value);
}}
components={{ Menu: AnimatedMenu }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { useFetchGet } from "Hooks/useFetchGet";
import { ThemeContext } from "Components/Theme";
import { AnimatedMenu } from "Components/Select";
import { NewLabelName, StringToOption } from "Common/Select";
import { OnChangeValue } from "react-select";

const SortLabelName: FC<{
settingsStore: Settings;
Expand All @@ -36,7 +37,7 @@ const SortLabelName: FC<{
options={
response ? response.map((value: string) => StringToOption(value)) : []
}
onChange={(option) => {
onChange={(option: OnChangeValue<OptionT, false>) => {
settingsStore.gridConfig.setSortLabel(
(option as OptionT).value as string,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ValidationError } from "Components/ValidationError";
import { ThemeContext } from "Components/Theme";
import { AnimatedMenu } from "Components/Select";
import { NewLabelName, OptionT, StringToOption } from "Common/Select";
import { OnChangeValue } from "react-select";

const LabelNameInput: FC<{
matcher: MatcherWithIDT;
Expand All @@ -31,7 +32,7 @@ const LabelNameInput: FC<{
response ? response.map((value: string) => StringToOption(value)) : []
}
placeholder={isValid ? "Label name" : <ValidationError />}
onChange={(option) => {
onChange={(option: OnChangeValue<OptionT, false>) => {
matcher.name = (option as OptionT).value;
}}
hideSelectedOptions
Expand Down