visuddhinanda пре 2 година
родитељ
комит
897537df4e
1 измењених фајлова са 9 додато и 1 уклоњено
  1. 9 1
      dashboard/src/components/template/Wbw/WbwWord.tsx

+ 9 - 1
dashboard/src/components/template/Wbw/WbwWord.tsx

@@ -38,6 +38,7 @@ export type TFieldName =
   | "bookMarkColor"
   | "bookMarkText"
   | "locked"
+  | "attachments"
   | "confidence";
 
 export interface IWbwField {
@@ -51,6 +52,13 @@ export enum WbwStatus {
   apply = 5,
   manual = 7,
 }
+
+export interface IWbwAttachment {
+  id: string;
+  content_type: string;
+  size: number;
+  title: string;
+}
 export interface WbwElement<R> {
   value: R;
   status: WbwStatus;
@@ -79,7 +87,7 @@ export interface IWbw {
   bookMarkText?: WbwElement<string | null>;
   locked?: boolean;
   confidence: number;
-  attachments?: UploadFile[];
+  attachments?: IWbwAttachment[];
   hasComment?: boolean;
 }
 export interface IWbwFields {