diff --git a/src/components/Documents/DocumentSkeleton.jsx b/src/components/Documents/DocumentSkeleton.jsx new file mode 100644 index 00000000..af75fd01 --- /dev/null +++ b/src/components/Documents/DocumentSkeleton.jsx @@ -0,0 +1,70 @@ +import React from "react"; + +const SkeletonCell = ({ + width = "100%", + height = 20, + className = "", + style = {}, +}) => ( +
+); + +export const DocumentTableSkeleton = ({ rows = 5 }) => { + return ( +| Name | +Document Type | +Uploaded By | +Uploaded on | +Status | +
|---|---|---|---|---|
|
+ |
+
+ {/* Document Type */}
+
+ |
+
+ {/* Uploaded By (Avatar + Name) */}
+
+
+
+ |
+
+ {/* Uploaded on */}
+
+ |
+
+ {/* Status */}
+
+ |
+
Error: {error?.message || "Something went wrong"}
; const DocumentColumns = [ diff --git a/src/components/Documents/NewDocument.jsx b/src/components/Documents/NewDocument.jsx index 180ee24e..df94bab4 100644 --- a/src/components/Documents/NewDocument.jsx +++ b/src/components/Documents/NewDocument.jsx @@ -174,7 +174,7 @@ const NewDocument = ({closeModal,Document_Entity,Entity}) => { {/* Type */} -