diff --git a/src/client/components/CommonList.tsx b/src/client/components/CommonList.tsx index 4339c19..b402f19 100644 --- a/src/client/components/CommonList.tsx +++ b/src/client/components/CommonList.tsx @@ -8,6 +8,7 @@ import { Input } from './ui/input'; import { useFuseSearch } from '@/hooks/useFuseSearch'; import { Empty } from 'antd'; import { globalEventBus } from '@/utils/event'; +import { Spinner } from './ui/spinner'; export interface CommonListItem { id: string; @@ -69,6 +70,12 @@ export const CommonList: React.FC = React.memo((props) => {
+ {props.isLoading && ( +
+ +
+ )} + {finalList.length === 0 && !props.isLoading && } {finalList.map((item) => {