added file upload tool and fileUploadProvider

This commit is contained in:
paul
2024-09-27 11:42:34 +05:30
parent 5be078f846
commit 7b4446d9ee
14 changed files with 205 additions and 70 deletions

View File

@@ -344,7 +344,7 @@ class Widget extends React.Component {
}
generateCode(){
throw new NotImplementedError("Get Code must be implemented by the subclass")
throw new NotImplementedError("generateCode() must be implemented by the subclass")
}
getAttributes() {

View File

@@ -4,7 +4,7 @@ const DragWidgetContext = createContext()
export const useDragWidgetContext = () => useContext(DragWidgetContext)
// Provider component to wrap around parts of your app that need drag-and-drop functionality
// Provider component to wrap around parts that need drag-and-drop functionality
export const DragWidgetProvider = ({ children }) => {
const [draggedElement, setDraggedElement] = useState(null)