From dde68e04eeacb9123946ee782bc965ed04111ddb Mon Sep 17 00:00:00 2001 From: Kevin Tun Date: Mon, 26 Feb 2024 13:33:12 -0600 Subject: [PATCH] refactor(SinglePublication.tsx): remove unused import and destructured variable 'identifiers' The import statement for 'PublicationLinks' is removed as it is no longer used in the file. The destructured variable 'identifiers' is also removed as it is not used in the component. This improves code readability and removes unnecessary code. --- .../src/features/Publication/SinglePublication.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/dicty-frontpage/src/features/Publication/SinglePublication.tsx b/apps/dicty-frontpage/src/features/Publication/SinglePublication.tsx index 4e704dbb80..9b53bd9864 100644 --- a/apps/dicty-frontpage/src/features/Publication/SinglePublication.tsx +++ b/apps/dicty-frontpage/src/features/Publication/SinglePublication.tsx @@ -2,7 +2,6 @@ import { Box, Grid, Typography } from "@material-ui/core" import { DateDisplay } from "@dictybase/ui-common" import { makeStyles } from "@material-ui/core/styles" import { Link } from "react-router-dom" -import { PublicationLinks } from "./PublicationLinks" import { type PublicationItem } from "../../common/hooks/useFetchPublications" import { getAuthorsCitationString, @@ -32,8 +31,7 @@ type SinglePublicationProperties = { } const SinglePublication = ({ data }: SinglePublicationProperties) => { - const { abstract, journal, identifiers, pubmedId, publishDate, authors } = - data + const { abstract, journal, pubmedId, publishDate, authors } = data const { link } = useStyles() const authorString = getAuthorsCitationString(authors) const title = formatTitle(data.title).full