Skip to content

Commit

Permalink
chore: remove deprecated selects and deps (#17522)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored Nov 23, 2021
1 parent 0f3b630 commit 18c7aec
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 73 deletions.
62 changes: 0 additions & 62 deletions superset-frontend/package-lock.json

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

1 change: 0 additions & 1 deletion superset-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@
"react-router-dom": "^5.1.2",
"react-search-input": "^0.11.3",
"react-select": "^3.1.0",
"react-select-async-paginate": "^0.4.1",
"react-sortable-hoc": "^1.11.0",
"react-split": "^2.0.9",
"react-sticky": "^6.0.3",
Expand Down
8 changes: 0 additions & 8 deletions superset-frontend/src/components/Select/DeprecatedSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import BasicSelect, {
import Async from 'react-select/async';
import Creatable from 'react-select/creatable';
import AsyncCreatable from 'react-select/async-creatable';
import { withAsyncPaginate } from 'react-select-async-paginate';

import { SelectComponents } from 'react-select/src/components';
import {
Expand All @@ -45,7 +44,6 @@ import {
WindowedSelectComponentType,
WindowedSelectProps,
WindowedSelect,
WindowedAsyncSelect,
WindowedCreatableSelect,
WindowedAsyncCreatableSelect,
} from './WindowedSelect';
Expand Down Expand Up @@ -319,12 +317,6 @@ function styled<
}

export const Select = styled(WindowedSelect);
export const AsyncSelect = styled(WindowedAsyncSelect);
export const CreatableSelect = styled(WindowedCreatableSelect);
export const AsyncCreatableSelect = styled(WindowedAsyncCreatableSelect);
export const PaginatedSelect = withAsyncPaginate(
styled<OptionTypeBase, ComponentType<SelectProps<OptionTypeBase>>>(
BasicSelect,
),
);
export default Select;
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
* under the License.
*/
import Select from 'react-select';
import Async from 'react-select/async';
import Creatable from 'react-select/creatable';
import AsyncCreatable from 'react-select/async-creatable';
import windowed from './windowed';

export * from './windowed';

export const WindowedSelect = windowed(Select);
export const WindowedAsyncSelect = windowed(Async);
export const WindowedCreatableSelect = windowed(Creatable);
export const WindowedAsyncCreatableSelect = windowed(AsyncCreatable);
export default WindowedSelect;

0 comments on commit 18c7aec

Please sign in to comment.