Skip to content

Commit

Permalink
Merge pull request #1891 from ResearchHub/journal-now
Browse files Browse the repository at this point in the history
removing unsued deps
  • Loading branch information
yattias authored Nov 27, 2024
2 parents 2f7faca + 6a32429 commit c0d628f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
import { AUTHOR_CLAIM_STATUS } from "../constants/AuthorClaimStatus";
import {
Authorship,
parseAuthorship,
parsePaper,
} from "~/components/Document/lib/types";
import {
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion components/Home/RHLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions components/Loader/Loader.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
1 change: 0 additions & 1 deletion pages/researchhub-journal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c0d628f

Please sign in to comment.