Skip to content

Commit

Permalink
Start off site logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcohen committed Nov 28, 2023
1 parent 77d2419 commit 16485d0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/ItemTable/InformationLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,13 @@ const InformationLinks = ({ item }: InformationLinksProps) => {
)
} else {
// Available Onsite item
const locationShort = item.location.prefLabel.split("-")[0]
console.log(item.location)
return (
<Text>
<span className="available-text">Available </span>
{"- Can be used on site. Please visit "}
<Link
href={"https://www.nypl.org/locations/" + item.location.endpoint}
target="_blank"
>
{"New York Public Library - "}
{locationShort}
<Link href={"/"} target="_blank">
{`New York Public Library - ${item.location.prefLabel}`}
</Link>
{" to submit a request in person."}
</Text>
Expand Down

0 comments on commit 16485d0

Please sign in to comment.