diff --git a/src/drive/web/modules/trash/components/DestroyConfirm.jsx b/src/drive/web/modules/trash/components/DestroyConfirm.jsx index 622ba5c677..324f2e6283 100644 --- a/src/drive/web/modules/trash/components/DestroyConfirm.jsx +++ b/src/drive/web/modules/trash/components/DestroyConfirm.jsx @@ -1,4 +1,4 @@ -import React from 'react' +import React, { useState } from 'react' import { useClient } from 'cozy-client' import { ConfirmDialog } from 'cozy-ui/transpiled/react/CozyDialogs' @@ -11,6 +11,7 @@ import { deleteFilesPermanently } from 'drive/web/modules/actions/utils' import { Message } from 'drive/web/modules/confirm/Message' const DestroyConfirm = ({ t, files, onClose }) => { const client = useClient() + const [isLoading, setIsLoading] = useState(false) return ( {