Skip to content

Commit

Permalink
change: use loader in modal facet
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Mar 20, 2024
1 parent d9a0fbf commit 80650d5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions searchlib/components/Facets/Wrappers/DropdownFacetWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
SearchContext,
} from '@eeacms/search/lib/hocs';
import { Facet as SUIFacet } from '@eeacms/search/components';
import { Dimmer, Modal, Button } from 'semantic-ui-react';
import { Dimmer, Modal, Button, Loader } from 'semantic-ui-react';
import { atomFamily } from 'jotai/utils';
import { useAtom, atom } from 'jotai';
import cx from 'classnames';
Expand Down Expand Up @@ -99,7 +99,12 @@ const DropdownFacetWrapper = (props) => {
</Modal.Header>
<Modal.Content>
<SearchContext.Provider value={facetSearchContext}>
{isLoading && <Dimmer active></Dimmer>}
{isLoading && (
<Dimmer active>
<Loader active size="medium" />
</Dimmer>
)}

<SUIFacet
{...props}
active={isOpen}
Expand Down

0 comments on commit 80650d5

Please sign in to comment.