Change Placeholder with new one (#7336)

This commit is contained in:
Ashish Gupta 2022-09-08 17:44:28 +05:30 committed by GitHub
parent 08c9606e26
commit ef55fd902e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,13 +13,14 @@
import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons'; import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Button, Empty, Tooltip } from 'antd'; import { Button, Tooltip, Typography } from 'antd';
import classNames from 'classnames'; import classNames from 'classnames';
import cronstrue from 'cronstrue'; import cronstrue from 'cronstrue';
import { capitalize, isNil, lowerCase, startCase } from 'lodash'; import { capitalize, isNil, lowerCase, startCase } from 'lodash';
import React, { Fragment, useCallback, useState } from 'react'; import React, { Fragment, useCallback, useState } from 'react';
import { Link, useHistory } from 'react-router-dom'; import { useHistory } from 'react-router-dom';
import { PAGE_SIZE } from '../../constants/constants'; import { PAGE_SIZE } from '../../constants/constants';
import { WORKFLOWS_METADATA_DOCS } from '../../constants/docs.constants';
import { NO_PERMISSION_TO_VIEW } from '../../constants/HelperTextUtil'; import { NO_PERMISSION_TO_VIEW } from '../../constants/HelperTextUtil';
import { Connection } from '../../generated/entity/services/databaseService'; import { Connection } from '../../generated/entity/services/databaseService';
import { import {
@ -34,6 +35,7 @@ import {
import { dropdownIcon as DropdownIcon } from '../../utils/svgconstant'; import { dropdownIcon as DropdownIcon } from '../../utils/svgconstant';
import SVGIcons, { Icons } from '../../utils/SvgUtils'; import SVGIcons, { Icons } from '../../utils/SvgUtils';
import { showSuccessToast } from '../../utils/ToastUtils'; import { showSuccessToast } from '../../utils/ToastUtils';
import ErrorPlaceHolder from '../common/error-with-placeholder/ErrorPlaceHolder';
import NextPrevious from '../common/next-previous/NextPrevious'; import NextPrevious from '../common/next-previous/NextPrevious';
import PopOver from '../common/popover/PopOver'; import PopOver from '../common/popover/PopOver';
import Searchbar from '../common/searchbar/Searchbar'; import Searchbar from '../common/searchbar/Searchbar';
@ -626,28 +628,17 @@ const Ingestion: React.FC<IngestionProps> = ({
) : ( ) : (
isRequiredDetailsAvailable && isRequiredDetailsAvailable &&
ingestionList.length === 0 && ( ingestionList.length === 0 && (
<div className="tw-border tw-border-main tw-rounded-md tw-mt-2 tw-p-8 tw-w-full tw-bg-white"> <ErrorPlaceHolder>
<Empty <Typography.Text>No ingestion data available</Typography.Text>
description={ <Typography.Text>
<> To view Ingestion Data, run the MetaData Ingestion. Please refer
<p>No ingestion data available</p> to this doc to schedule the{' '}
<p className="tw-mt-2"> </Typography.Text>
To view Ingestion Data, run the MetaData Ingestion. Please <Typography.Link href={WORKFLOWS_METADATA_DOCS} target="_blank">
refer to this doc to schedule the{' '} {' '}
<Link Metadata Ingestion
className="tw-ml-1" </Typography.Link>
target="_blank" </ErrorPlaceHolder>
to={{
pathname:
'https://docs.open-metadata.org/openmetadata/ingestion/workflows/metadata',
}}>
Metadata Ingestion
</Link>
</p>
</>
}
/>
</div>
) )
)} )}
</div> </div>