Skip to content

Commit

Permalink
Cleaned up types and props;
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen committed Aug 20, 2024
1 parent 5579877 commit 532a00e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 0 additions & 3 deletions packages/ui-lib/src/components/OdinImage/OdinPayloadImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ export interface OdinPayloadImageProps
dotYouClient: DotYouClient;

naturalSize?: ImageSize;

probablyEncrypted?: boolean;
preferObjectUrl?: boolean;
}

// Component to render a tiny thumb image;
Expand Down
4 changes: 4 additions & 0 deletions packages/ui-lib/src/components/OdinImage/OdinPreviewImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export const OdinPreviewImage = forwardRef(
className,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
lastModified,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
probablyEncrypted,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
preferObjectUrl,
...props
}: OdinPreviewImageProps,
ref: React.Ref<HTMLImageElement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ export interface OdinThumbnailImageProps

loadSize: ImageSize | undefined;
naturalSize?: ImageSize;

probablyEncrypted?: boolean;
preferObjectUrl?: boolean;
}

// Component to render a tiny thumb image;
Expand Down
4 changes: 4 additions & 0 deletions packages/ui-lib/src/components/OdinImage/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export interface ImageSource {
// File params
systemFileType?: SystemFileType;
lastModified?: number;
probablyEncrypted?: boolean;

// Url params
preferObjectUrl?: boolean;
}

export interface ImageEvents {
Expand Down

0 comments on commit 532a00e

Please sign in to comment.