Skip to content

Commit

Permalink
Move urls to Heading component props to remove underlines
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcohen committed Oct 30, 2023
1 parent a5be13e commit 6004229
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
20 changes: 10 additions & 10 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export default function Home() {
}}
layout="row"
>
<CardHeading level="h4">
<Link href="/research/collections">Collections</Link>
<CardHeading level="h4" url="/research/collections">
Collections
</CardHeading>
<CardContent>
<p>
Expand All @@ -82,8 +82,8 @@ export default function Home() {
}}
layout="row"
>
<CardHeading level="h4">
<Link href="/locations/map?libraries=research">Locations</Link>
<CardHeading level="h4" url="/locations/map?libraries=research">
Locations
</CardHeading>
<CardContent>
<p>
Expand All @@ -101,8 +101,8 @@ export default function Home() {
}}
layout="row"
>
<CardHeading level="h4">
<Link href="/about/divisions">Divisions</Link>
<CardHeading level="h4" url="/about/divisions">
Divisions
</CardHeading>
<CardContent>
<p>
Expand All @@ -120,8 +120,8 @@ export default function Home() {
}}
layout="row"
>
<CardHeading level="h4">
<Link href="/research/support">Support</Link>
<CardHeading level="h4" url="/research/support">
Support
</CardHeading>
<CardContent>
<p>
Expand All @@ -139,8 +139,8 @@ export default function Home() {
}}
layout="row"
>
<CardHeading level="h4">
<Link href="/research/services">Services</Link>
<CardHeading level="h4" url="/research/services">
Services
</CardHeading>
<CardContent>
<p>
Expand Down
6 changes: 5 additions & 1 deletion src/components/DRB/DRBCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ const DRBCard = ({ drbResult }: DRBCardProps) => {
{drbResult.authors.map((author: Author | Agent, index: number) => (
<>
{index > 0 && ","}
<DSLink href={getAuthorURL(author)} target="_blank">
<DSLink
href={getAuthorURL(author)}
target="_blank"
isUnderlined={false}
>
{author.name}
</DSLink>
</>
Expand Down
6 changes: 2 additions & 4 deletions src/components/SearchResult/SearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ const SearchResult = ({ bib }: SearchResultProps) => {
paddingBottom: "m",
}}
>
<CardHeading level="h3" size="heading4">
<DSLink href={`${PATHS.BIB}/${bib.id}`} isUnderlined={false}>
{bib.title}
</DSLink>
<CardHeading level="h3" size="heading4" url={`${PATHS.BIB}/${bib.id}`}>
{bib.title}
</CardHeading>
<CardContent>
<Box sx={{ p: { display: "inline", marginRight: "s" } }}>
Expand Down

0 comments on commit 6004229

Please sign in to comment.