This commit is contained in:
ManishMadan2882 2024-05-16 18:27:36 +05:30
parent 4f9ce70ff8
commit 9fba91069a
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,3 @@
# 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

View File

@ -1,6 +1,6 @@
import { DocumentsProps } from '../models/misc';
import Trash from '../assets/trash.svg';
import PropTypes from 'prop-types';
const Documents: React.FC<DocumentsProps> = ({
documents,
handleDeleteDocument,
@ -56,5 +56,8 @@ const Documents: React.FC<DocumentsProps> = ({
</div>
);
};
Documents.propTypes = {
documents: PropTypes.array.isRequired,
handleDeleteDocument: PropTypes.func.isRequired,
};
export default Documents;