Skip to content

Commit

Permalink
style(network): use 3quarters loader in results extra
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 23, 2024
1 parent 5ae9158 commit b93c7ff
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Space, Spin, Tag } from 'antd';
import SearchResultsPane from '@/components/Search/SearchResultsPane';
import { useBeaconNetwork } from '@/features/beacon/hooks';
import { useTranslationDefault } from '@/hooks';
import { Loading3QuartersOutlined } from '@ant-design/icons';

const NetworkSearchResults = () => {
const td = useTranslationDefault();
Expand Down Expand Up @@ -42,7 +43,9 @@ const NetworkSearchResults = () => {
const resultsExtra = (
<Space>
{hasBeaconNetworkError && <Tag color="red">Network Error</Tag>}
{!noResponsesYet && isFetchingAtLeastOneResponse && <Spin size="small" />}
{!noResponsesYet && isFetchingAtLeastOneResponse && (
<Spin size="small" indicator={<Loading3QuartersOutlined spin={true} />} />
)}
{numResultsText(numNonZeroResponses)}
</Space>
);
Expand Down

0 comments on commit b93c7ff

Please sign in to comment.