|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
import { Spinner, DeferredRender, Icon, FilterInput, HelpMessage, __TabBar, StickyElement, Popout, EmptyStateImage } from '@vizality/components';
|
|
|
|
|
import { Spinner, DeferredRender, Icon, FilterInput, HelpMessage, __TabBar, StickyElement, Popout } from '@vizality/components';
|
|
|
|
|
import { useForceUpdate, usePreviousProps, useFilter, useToggle } from '@vizality/hooks';
|
|
|
|
|
import { toPlural, toKebabCase } from '@vizality/util/string';
|
|
|
|
|
import React, { memo, useState, useEffect } from 'react';
|
|
|
|
@ -75,6 +75,8 @@ const SearchResultsHeader = memo(({ query, resultsCount, limit, type, tab }) =>
|
|
|
|
|
* @returns {React.MemoExoticComponent<function(): React.ReactElement>}
|
|
|
|
|
*/
|
|
|
|
|
const ContentBody = memo(({ community, display, filteredResults, type, limit, resultsCount, handleResultsCount }) => {
|
|
|
|
|
const { emptyStateImage } = getModule('emptyStateImage', 'emptyStateHeader');
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* If the filtered items count doesn't equal the current results count, update the value.
|
|
|
|
|
*/
|
|
|
|
@ -101,7 +103,7 @@ const ContentBody = memo(({ community, display, filteredResults, type, limit, re
|
|
|
|
|
)
|
|
|
|
|
: (
|
|
|
|
|
<div className='vz-addons-list-empty'>
|
|
|
|
|
<EmptyStateImage />
|
|
|
|
|
<div class={emptyStateImage} />
|
|
|
|
|
<p>{Messages.GIFT_CONFIRMATION_HEADER_FAIL}</p>
|
|
|
|
|
<p>{Messages.SEARCH_NO_RESULTS}</p>
|
|
|
|
|
</div>
|
|
|
|
|