Skip to content

Commit

Permalink
adress build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jona42-ui committed Aug 15, 2023
1 parent c1fe6c5 commit 9abc8d5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 27 deletions.
46 changes: 23 additions & 23 deletions src/attachments-types.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
export interface UploadedFile {
file?: File;
base64Content: string;
fileName: string;
fileType: string;
fileDescription: string;
status?: "uploading" | "complete";
}
file?: File;
base64Content: string;
fileName: string;
fileType: string;
fileDescription: string;
status?: "uploading" | "complete";
}

Check failure on line 9 in src/attachments-types.ts

View workflow job for this annotation

GitHub Actions / build

Delete `··`
export interface Attachment {
id: string;
src: string;
title: string;
description: string;
dateTime: string;
bytesMimeType: string;
bytesContentFamily: string;
}
export interface AttachmentResponse {
bytesContentFamily: string;
bytesMimeType: string;
comment: string;
dateTime: string;
uuid: string;
}
export interface Attachment {
id: string;
src: string;
title: string;
description: string;
dateTime: string;
bytesMimeType: string;
bytesContentFamily: string;
}
export interface AttachmentResponse {
bytesContentFamily: string;
bytesMimeType: string;
comment: string;
dateTime: string;
uuid: string;
}

Check failure on line 25 in src/attachments-types.ts

View workflow job for this annotation

GitHub Actions / build

Insert `⏎`
6 changes: 2 additions & 4 deletions src/components/drawing-widget/drawing-widget.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ interface DrawingWidgetProps {

const DrawingWidget: React.FC<DrawingWidgetProps> = ({ onExit }) => {
const [selectedFile, setSelectedFile] = useState<File | null>(null);
const [selectedImage, setSelectedImage] = useState<string | null>(null);
const [selectedImage] = useState<string | null>(null);
const [annotations, setAnnotations] = useState<ImageData[]>([]);
const [loading, setLoading] = useState<boolean>(true);
const [, setLoading] = useState<boolean>(true);
const [activeImage, setActiveImage] = useState<ImageData | null>(null);
const { t } = useTranslation();

Check failure on line 37 in src/components/drawing-widget/drawing-widget.component.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `·⏎`
Expand All @@ -40,7 +40,6 @@ const DrawingWidget: React.FC<DrawingWidgetProps> = ({ onExit }) => {
const CreateBoxIcon = () => <Crop />;

useEffect(() => {
let isMounted = true;
const selectedImageURLParam = new URLSearchParams(
window.location.search
).get("image-url");
Expand All @@ -57,7 +56,6 @@ const DrawingWidget: React.FC<DrawingWidgetProps> = ({ onExit }) => {
}

return () => {

Check failure on line 58 in src/components/drawing-widget/drawing-widget.component.tsx

View workflow job for this annotation

GitHub Actions / build

Unexpected empty arrow function

Check failure on line 58 in src/components/drawing-widget/drawing-widget.component.tsx

View workflow job for this annotation

GitHub Actions / build

Delete `⏎····`
isMounted = false;
};
}, []);

Expand Down

0 comments on commit 9abc8d5

Please sign in to comment.