Skip to content

Commit

Permalink
#253 : fix link and remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermau committed Jan 17, 2025
1 parent 7eefdbf commit 46afa24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 1 addition & 3 deletions web/src/ui/pages/softwareDetails/HeaderDetailCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,10 @@ export const HeaderDetailCard = memo((props: Props) => {
const [anchorEl, setAnchorEl] = React.useState<HTMLElement | null>(null);

const handlePopoverOpen = (event: React.MouseEvent<HTMLElement>) => {
console.log("enter", event.currentTarget.id);
setAnchorEl(anchorEl ? null : event.currentTarget);
};

const handlePopoverClose = (event: React.MouseEvent<HTMLElement>) => {
console.log("close", event.currentTarget.id);
const handlePopoverClose = () => {
setAnchorEl(null);
};

Expand Down
13 changes: 11 additions & 2 deletions web/src/ui/shared/AuthorCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,21 @@ export function AuthorCard(props: Props) {
{author?.affiliatedStructure?.map(affiliatedStructure => {
return (
<>
<a target="_blank" href={affiliatedStructure.url}>
<a
target="_blank"
rel="noreferrer"
href={affiliatedStructure.url}
>
{affiliatedStructure.name}
</a>
<ul>
{affiliatedStructure.parentStructure?.map(parentStructure => (
<li>
<a target="_blank" href={parentStructure.url}>
<a
target="_blank"
rel="noreferrer"
href={parentStructure.url}
>
{parentStructure.name}
</a>
{parentStructure.parentStructure && (
Expand All @@ -57,6 +65,7 @@ export function AuthorCard(props: Props) {
<li>
<a
target="_blank"
rel="noreferrer"
href={parent3Structure.url}
>
{parent3Structure.name}
Expand Down

0 comments on commit 46afa24

Please sign in to comment.