feat: The search box is displayed globally when the page is loaded for the first time #2247 (#2325)

### What problem does this PR solve?

feat: The search box is displayed globally when the page is loaded for
the first time #2247

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-09-09 16:37:04 +08:00
committed by GitHub
parent 884dcbcb7e
commit ceae4df889
4 changed files with 145 additions and 75 deletions

View File

@ -22,7 +22,7 @@ interface IProps {
}
const SearchSidebar = ({ checkedList, setCheckedList }: IProps) => {
const { list } = useNextFetchKnowledgeList();
const { list, loading } = useNextFetchKnowledgeList();
const ids = useMemo(() => list.map((x) => x.id), [list]);
const checkAll = list.length === checkedList.length;
@ -67,6 +67,7 @@ const SearchSidebar = ({ checkedList, setCheckedList }: IProps) => {
bordered
dataSource={list}
className={styles.list}
loading={loading}
renderItem={(item) => (
<List.Item>
<Checkbox value={item.id} className={styles.checkbox}>