-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build-details): add tree details link
- Created a component for details link items - Refactored old code to use the new component - Added a tree details link to the build details page Part of #960
- Loading branch information
Showing
5 changed files
with
63 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { type JSX, memo } from 'react'; | ||
|
||
import { Link, type LinkProps } from '@tanstack/react-router'; | ||
|
||
const LinkItem = ({ children, ...props }: LinkProps): JSX.Element => { | ||
return ( | ||
<Link | ||
{...props} | ||
className="flex flex-row items-center gap-1 underline hover:text-slate-900" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
{children} | ||
</Link> | ||
); | ||
}; | ||
|
||
export default memo(LinkItem); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import MemoizedLinkItem from './DetailsLink'; | ||
|
||
export default MemoizedLinkItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters