Skip to content

Commit

Permalink
refactor(SinglePublication.tsx): remove unused import and destructure…
Browse files Browse the repository at this point in the history
…d 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.
  • Loading branch information
ktun95 committed Feb 26, 2024
1 parent df7f45e commit dde68e0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dde68e0

Please sign in to comment.