mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
lint fix
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
# Please put appropriate value
|
# Please put appropriate value
|
||||||
VITE_API_HOST=http://127.0.0.1:7091
|
VITE_API_HOST=http://0.0.0.0:7091
|
||||||
VITE_API_STREAMING=true
|
VITE_API_STREAMING=true
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { DocumentsProps } from '../models/misc';
|
import { DocumentsProps } from '../models/misc';
|
||||||
import Trash from '../assets/trash.svg';
|
import Trash from '../assets/trash.svg';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
const Documents: React.FC<DocumentsProps> = ({
|
const Documents: React.FC<DocumentsProps> = ({
|
||||||
documents,
|
documents,
|
||||||
handleDeleteDocument,
|
handleDeleteDocument,
|
||||||
@@ -56,5 +56,8 @@ const Documents: React.FC<DocumentsProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Documents.propTypes = {
|
||||||
|
documents: PropTypes.array.isRequired,
|
||||||
|
handleDeleteDocument: PropTypes.func.isRequired,
|
||||||
|
};
|
||||||
export default Documents;
|
export default Documents;
|
||||||
|
|||||||
Reference in New Issue
Block a user