mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
Context extract support value type (#1620)
* perf: chat box components * perf: chatbox context * feat: extract support value type * workflow performance * update doc * feat: error response * feat: error response * oauth sort * perf: logo * fix: update laf account * perf: team permission api * update type
This commit is contained in:
@@ -44,18 +44,17 @@ export const useConfirm = (props?: {
|
||||
const confirmCb = useRef<Function>();
|
||||
const cancelCb = useRef<any>();
|
||||
|
||||
const openConfirm = (
|
||||
confirm?: Function,
|
||||
cancel?: any,
|
||||
customContent?: string | React.ReactNode
|
||||
) => {
|
||||
confirmCb.current = confirm;
|
||||
cancelCb.current = cancel;
|
||||
const openConfirm = useCallback(
|
||||
(confirm?: Function, cancel?: any, customContent?: string | React.ReactNode) => {
|
||||
confirmCb.current = confirm;
|
||||
cancelCb.current = cancel;
|
||||
|
||||
customContent && setCustomContent(customContent);
|
||||
customContent && setCustomContent(customContent);
|
||||
|
||||
return onOpen;
|
||||
};
|
||||
return onOpen;
|
||||
},
|
||||
[]
|
||||
);
|
||||
|
||||
const ConfirmModal = useCallback(
|
||||
({
|
||||
|
Reference in New Issue
Block a user