Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing unsued deps #1891

Merged
merged 5 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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