Skip to content

Commit

Permalink
Merge pull request #311 from nulib/upgrade-clover-iiif
Browse files Browse the repository at this point in the history
Upgrade Clover dep
  • Loading branch information
adamjarling authored Feb 27, 2024
2 parents 780e206 + bb0de92 commit 15a4852
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 64 deletions.
4 changes: 2 additions & 2 deletions components/Clover/ViewerWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import {
AnnouncementContent,
ViewerWrapperStyled,
} from "@/components/Clover/ViewerWrapper.styled";
import type { CloverViewerProps, ViewerConfigOptions } from "@samvera/clover-iiif";

import Announcement from "@/components/Shared/Announcement";
import { IconInfo } from "@/components/Shared/SVG/Icons";
import React from "react";
import { UserContext } from "@/context/user-context";
import type { ViewerConfigOptions } from "@samvera/clover-iiif";
import type { Work } from "@nulib/dcapi-types";
import dynamic from "next/dynamic";

Expand Down Expand Up @@ -67,7 +67,7 @@ const WorkViewerWrapper: React.FC<WrapperProps> = ({
withCredentials: true,
};

const options = {
const options: CloverViewerProps["options"] = {
...defaultOptions,
...viewerOptions,
};
Expand Down
3 changes: 3 additions & 0 deletions components/Figure/Figure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
FigureVariants,
} from "@/components/Figure/Figure.styled";
import React, { ReactNode } from "react";

import { IconLock } from "@/components/Shared/SVG/Icons";
import { width } from "@/styles/media";

Expand All @@ -33,6 +34,8 @@ const Figure: React.FC<FigureProps & FigureVariants> = (props) => {
const { data, orientation } = props;
const { aspectRatio, isRestricted, title, supplementalInfo, src } = data;

if (!src) return null;

const handleOnLoad = () => setIsLoaded(true);
const handleOnError = () => console.error("image loading error");

Expand Down
122 changes: 61 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-switch": "^1.0.1",
"@radix-ui/react-tabs": "^1.0.1",
"@samvera/clover-iiif": "^2.2.6",
"@samvera/clover-iiif": "2.4.0-rc.0",
"@samvera/image-downloader": "^1.1.6",
"@stitches/react": "^1.2.6",
"axios": "^1.2.2",
Expand Down

0 comments on commit 15a4852

Please sign in to comment.