diff --git a/components/AuthorClaimCaseDashboard/api/AuthorClaimCaseGetCases.ts b/components/AuthorClaimCaseDashboard/api/AuthorClaimCaseGetCases.ts index 884f9a2abc..068abe1ad1 100644 --- a/components/AuthorClaimCaseDashboard/api/AuthorClaimCaseGetCases.ts +++ b/components/AuthorClaimCaseDashboard/api/AuthorClaimCaseGetCases.ts @@ -11,7 +11,6 @@ import { import { AUTHOR_CLAIM_STATUS } from "../constants/AuthorClaimStatus"; import { Authorship, - parseAuthorship, parsePaper, } from "~/components/Document/lib/types"; import { @@ -94,10 +93,10 @@ export function getCases({ status, updated_date, paper, + authorship, target_author_name, target_paper_title, target_paper_doi, - authorship, preregistration_url, open_data_url, paper_reward, @@ -110,7 +109,7 @@ export function getCases({ status, updatedDate: updated_date, paper, - authorship: authorship ? parseAuthorship(authorship) : null, + authorship: authorship, userVerification: { isVerified: resultData?.user_verification?.status === "APPROVED", verifiedName: resultData?.user_verification?.verified_name, diff --git a/components/Home/RHLogo.tsx b/components/Home/RHLogo.tsx index 79e98493a3..a7a9180759 100644 --- a/components/Home/RHLogo.tsx +++ b/components/Home/RHLogo.tsx @@ -4,7 +4,7 @@ import { breakpoints } from "~/config/themes/screen"; import FlaskAnimation from "../../public/RH_animated_flask_new_starting_frame.json"; import { useRef, useState } from "react"; -const Lottie = dynamic(() => import("react-lottie")); +const Lottie = dynamic(() => import("react-lottie"), { ssr: false }); type Props = { iconStyle: StyleDeclarationValue; diff --git a/components/Loader/Loader.js b/components/Loader/Loader.js index 0f76ddca94..8ec3263cbe 100644 --- a/components/Loader/Loader.js +++ b/components/Loader/Loader.js @@ -1,8 +1,6 @@ import { StyleSheet, css } from "aphrodite"; import dynamic from "next/dynamic"; -// import { Player } from "@lottiefiles/react-lottie-player"; - const Loader = (props) => { const { size, containerStyle, type, Component } = props; diff --git a/pages/researchhub-journal/index.tsx b/pages/researchhub-journal/index.tsx index 1edcf86a7a..5af1c7ccc5 100644 --- a/pages/researchhub-journal/index.tsx +++ b/pages/researchhub-journal/index.tsx @@ -11,7 +11,6 @@ import { useState } from "react"; import { useRouter } from 'next/router'; import JournalLayout from "~/components/ResearchHubJournal/JournalLayout"; import PaperVersionModal from "~/components/Document/lib/PaperVersion/PaperVersionModal"; -import { ACTION } from "~/components/Document/lib/PaperVersion/PaperVersionTypes"; function ResearchHubJournalPage(): JSX.Element { const router = useRouter();