Skip to content

Commit

Permalink
rm unneccesssary fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
charmingduchess committed Jan 3, 2025
1 parent 9a94953 commit adb16e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
6 changes: 1 addition & 5 deletions src/components/ItemTable/ItemAvailability.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ const ItemAvailability = ({ item }: ItemAvailabilityProps) => {
break
case RECAP_AEON:
case RECAP_AEON_FINDING_AID:
message = (
<>
<AvailableByAppointment displayPeriod />
</>
)
message = <AvailableByAppointment displayPeriod />
break
case ONSITE_AEON_FINDING_AID:
message = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import ExternalLink from "../../Links/ExternalLink/ExternalLink"

const AvailableByAppointment = ({ displayPeriod = false }) => {
return (
<>
<Box as="span" color="ui.success.primary">
{`Available by appointment${displayPeriod ? ". " : ""}`}
</Box>
</>
<Box as="span" color="ui.success.primary">
{`Available by appointment${displayPeriod ? ". " : ""}`}
</Box>
)
}

Expand All @@ -26,7 +24,7 @@ const AvailableAtLink = ({ location }) => {

const AvailableAt = ({ location }) => {
if (!location?.endpoint) return null
else return <> {` at ${location.prefLabel}. `}</>
return <> {` at ${location.prefLabel}. `}</>
}

export { AvailableByAppointment, AvailableAtLink, AvailableAt }

0 comments on commit adb16e9

Please sign in to comment.