tachybase_todo/packages/plugins/workflow/src/client/ExecutionResourceProvider.tsx
Junyi 4a3cb6e65f
Refactor(plugin workflow): move client files into plugin (#556)
* refactor(plugin-workflow): move client files into plugin

* fix(client): fix package path block build

* test(plugin-workflow): trigger ci
2022-06-29 23:42:03 +08:00

25 lines
501 B
TypeScript

import React from "react";
import { ResourceActionProvider, useRecord } from "@nocobase/client";
export const ExecutionResourceProvider = ({ request, ...others }) => {
const workflow = useRecord();
const props = {
...others,
request: {
...request,
params: {
...request?.params,
filter: {
...(request?.params?.filter),
key: workflow.key
}
}
},
workflow
};
return (
<ResourceActionProvider {...props} />
);
}