Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Added Loading Modal to Details pages #221

Conversation

davidcui1225
Copy link
Contributor

Issue #, if available:
N/A
Description of changes:
Extract GenerateReportLoadingModal and added it to Report details and Report definition details for file format download.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

* permissions and limitations under the License.
*/

export { GenerateReportLoadingModal } from './loading_modal';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why need this, you already export this from loading_modal.tsx

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So when we export it in other files we don't need to write import from '../../loading_modal/loading_modal, eliminates need for nested import

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think loading_modal is like a util components, which may better be placed under utils for other components to call. Otherwise, if you write a index.ts for every small component, the project will have too many files. Just my 2 cents, may refer to some project structure standard later when we do the refactor

@davidcui1225 davidcui1225 merged commit ca100c9 into opendistro-for-elasticsearch:dev Nov 25, 2020
@davidcui1225 davidcui1225 deleted the details-page-modals branch November 25, 2020 19:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants