mirror of
https://github.com/apache/superset.git
synced 2026-04-27 12:05:24 +00:00
chore: Moves messageToasts to the components folder (#14431)
* chore: Moves messageToasts to the components folder * Rebases
This commit is contained in:
committed by
GitHub
parent
b6d78bf4f2
commit
9b17e86b44
@@ -21,7 +21,7 @@ import { render, screen } from 'spec/helpers/testing-library';
|
||||
import { Provider } from 'react-redux';
|
||||
import fetchMock from 'fetch-mock';
|
||||
import { storeWithState } from 'spec/fixtures/mockStore';
|
||||
import ToastPresenter from 'src/messageToasts/containers/ToastPresenter';
|
||||
import ToastContainer from 'src/components/MessageToasts/ToastContainer';
|
||||
import TableLoader, { TableLoaderProps } from '.';
|
||||
|
||||
fetchMock.get('glob:*/api/v1/mock', [
|
||||
@@ -38,7 +38,7 @@ function renderWithProps(props: TableLoaderProps = defaultProps) {
|
||||
return render(
|
||||
<Provider store={storeWithState({})}>
|
||||
<TableLoader {...props} />
|
||||
<ToastPresenter />
|
||||
<ToastContainer />
|
||||
</Provider>,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import React, { useState, useEffect, useMemo } from 'react';
|
||||
import { t, SupersetClient, JsonObject } from '@superset-ui/core';
|
||||
import TableView, { EmptyWrapperType } from 'src/components/TableView';
|
||||
import withToasts from 'src/messageToasts/enhancers/withToasts';
|
||||
import withToasts from 'src/components/MessageToasts/withToasts';
|
||||
import Loading from 'src/components/Loading';
|
||||
import 'stylesheets/reactable-pagination.less';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user