mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
cb0f097c3c
@ -16,6 +16,7 @@ import {
|
||||
useBlockRequestContext,
|
||||
useCollection,
|
||||
useCollection_deprecated,
|
||||
useParsedFilter,
|
||||
useApp,
|
||||
} from '@nocobase/client';
|
||||
import { Spin } from 'antd';
|
||||
@ -67,14 +68,17 @@ const InternalKanbanBlockProvider = (props) => {
|
||||
};
|
||||
|
||||
export const KanbanBlockProvider = (props) => {
|
||||
const params = { ...props.params };
|
||||
const { filter: parsedFilter } = useParsedFilter({
|
||||
filterOption: props.params?.filter,
|
||||
});
|
||||
const params = { ...props.params, filter: parsedFilter };
|
||||
|
||||
return (
|
||||
<BlockProvider name="kanban" {...props} params={params}>
|
||||
<InternalKanbanBlockProvider {...props} params={params} />
|
||||
</BlockProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export const useKanbanBlockContext = () => {
|
||||
return useContext(KanbanBlockContext);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user