Skip to content

The Open Source DocuSign Alternative.

added type for statusFilter

Subham Ray6d30a486ab79
diff --git a/apps/web/pages/documents.tsx b/apps/web/pages/documents.tsx
index eea36a846..d384eba47 100644
--- a/apps/web/pages/documents.tsx
+++ b/apps/web/pages/documents.tsx
@@ -27,7 +27,13 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
const [filteredDocuments, setFilteredDocuments] = useState([]);
const [loading, setLoading] = useState(true);
- const statusFilters = [
+
+ type statusFilterType = {
+ label: string;
+ value: DocumentStatus | "ALL";
+ };
+
+ const statusFilters: statusFilterType[] = [
{ label: "All", value: "ALL" },
{ label: "Draft", value: "DRAFT" },
{ label: "Waiting for others", value: "PENDING" },
@@ -83,7 +89,7 @@ const DocumentsPage: NextPageWithLayout = (props: any) => {
return filteredDocuments;
}
- function handleSetSelectedStatusFilter(status: any) {
+ function handleSetSelectedStatusFilter(status: statusFilterType) {
router.replace(
{
pathname: router.pathname,