diff --git a/frontend/src/InteractiveSearch/InteractiveSearchContent.css b/frontend/src/InteractiveSearch/InteractiveSearchContent.css index a8d1c62a6..11ca1e4ff 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearchContent.css +++ b/frontend/src/InteractiveSearch/InteractiveSearchContent.css @@ -4,12 +4,8 @@ margin-bottom: 10px; } -.filteredMessage { - margin-top: 10px; -} +.alert { + composes: alert from '~Components/Alert.css'; -.blankpad { - padding-top: 10px; - padding-bottom: 10px; - padding-left: 2em; + margin-top: 10px; } diff --git a/frontend/src/InteractiveSearch/InteractiveSearchContent.css.d.ts b/frontend/src/InteractiveSearch/InteractiveSearchContent.css.d.ts index 74bcaaa83..4f0e8b3db 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearchContent.css.d.ts +++ b/frontend/src/InteractiveSearch/InteractiveSearchContent.css.d.ts @@ -1,9 +1,8 @@ // This file is automatically generated. // Please do not change this file! interface CssExports { - 'blankpad': string; + 'alert': string; 'filterMenuContainer': string; - 'filteredMessage': string; } export const cssExports: CssExports; export default cssExports; diff --git a/frontend/src/InteractiveSearch/InteractiveSearchContent.js b/frontend/src/InteractiveSearch/InteractiveSearchContent.js index 45053793c..23451490e 100644 --- a/frontend/src/InteractiveSearch/InteractiveSearchContent.js +++ b/frontend/src/InteractiveSearch/InteractiveSearchContent.js @@ -1,10 +1,11 @@ import PropTypes from 'prop-types'; import React from 'react'; +import Alert from 'Components/Alert'; import Icon from 'Components/Icon'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import Table from 'Components/Table/Table'; import TableBody from 'Components/Table/TableBody'; -import { icons, sortDirections } from 'Helpers/Props'; +import { icons, kinds, sortDirections } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; import InteractiveSearchRowConnector from './InteractiveSearchRowConnector'; import styles from './InteractiveSearchContent.css'; @@ -127,23 +128,23 @@ function InteractiveSearchContent(props) { { !isFetching && !!error && -
+ {translate('UnableToLoadResultsIntSearch')} -
+ } { !isFetching && isPopulated && !totalReleasesCount && -
+ {translate('NoResultsFound')} -
+ } { !!totalReleasesCount && isPopulated && !items.length && -
+ {translate('AllResultsHiddenFilter')} -
+ } { @@ -175,9 +176,9 @@ function InteractiveSearchContent(props) { { totalReleasesCount !== items.length && !!items.length && -
+ {translate('SomeResultsHiddenFilter')} -
+ } );