Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miaawong committed Jul 12, 2024
1 parent 1b8354a commit 3fd1b58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/src/components/UploadLicenseFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,13 @@ const UploadLicenseFile = (props: Props) => {
<p className="u-fontSize--small u-textColor--bodyCopy u-lineHeight--normal u-marginBottom--10">
Select the application that you want to install.
</p>
{/* TODO: there's probably a bug here*/}
{/*@ts-ignore*/}
<Select
className="replicated-select-container"
classNamePrefix="replicated-select"
options={state.availableAppOptions}
getOptionLabel={(option) =>
// We want to display element instead of string
// @ts-ignore
getLabel(option.label)
}
getOptionValue={(option) => option.value}
Expand Down
13 changes: 11 additions & 2 deletions web/src/components/snapshots/SnapshotStorageDestination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ type AWSStoreProvider = {
other?: undefined;
path?: string;
bucket?: string;
internal?: boolean;
fileSystem?: string;
};

type GCPStoreProvider = {
Expand All @@ -116,6 +118,8 @@ type GCPStoreProvider = {
azure?: undefined;
other?: undefined;
path?: undefined;
internal?: boolean;
fileSystem?: string;
};

type AzureStoreProvider = {
Expand All @@ -133,6 +137,8 @@ type AzureStoreProvider = {
gcp?: undefined;
other?: undefined;
path?: undefined;
internal?: boolean;
fileSystem?: string;
};

type OtherStoreProvider = {
Expand All @@ -148,6 +154,8 @@ type OtherStoreProvider = {
gcp?: undefined;
azure?: undefined;
path?: undefined;
internal?: boolean;
fileSystem?: string;
};

type StoreMetadata = {
Expand Down Expand Up @@ -1763,15 +1771,16 @@ class SnapshotStorageDestination extends Component<Props, State> {
)}
<div className="flex1">
{availableDestinations.length > 1 ? (
// TODO: upgrade react-select and use the current typing
// @ts-ignore
<Select
className="replicated-select-container"
classNamePrefix="replicated-select"
placeholder="Select unit"
options={availableDestinations}
isSearchable={false}
getOptionLabel={(destination) =>
// TODO: upgrade react-select and use the current typing
// We want to display element instead of string
// @ts-ignore
this.getDestinationLabel(
destination,
destination.label
Expand Down

0 comments on commit 3fd1b58

Please sign in to comment.