Skip to content

Commit 56c05ba

Browse files
Fixes an issue with double tab targets in the Extensions page. (#963)
1 parent b5756f1 commit 56c05ba

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/components/Extensions/Details/DetailCard/Tabs/ApisAndResources.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ const Resources: React.FC<React.PropsWithChildren<unknown>> = () => {
6161
<article key={r.name} className={styles.resourceItem}>
6262
<div className={styles.resourceItemHeader}>
6363
<div>{r.name}</div>
64-
<Link
64+
<Button
65+
tag={Link}
6566
to={`/logs?q=metadata.function.name="${r.functionName}"`}
6667
className={styles.viewLogsLink}
6768
target="_blank"
6869
rel="noopener noreferrer"
6970
>
70-
<Button>View logs</Button>
71-
</Link>
71+
View logs
72+
</Button>
7273
</div>
7374
<div>{r.description}</div>
7475
</article>
@@ -95,16 +96,14 @@ const Resources: React.FC<React.PropsWithChildren<unknown>> = () => {
9596
Cloud Functions
9697
</Typography>
9798
</div>
98-
<Link
99+
<Button
99100
target="_blank"
100101
rel="noopener noreferrer"
102+
tag={Link}
101103
to={`/logs?q=metadata.extension.instanceId="${extension.id}"`}
102-
className={styles.viewLogsLink}
103104
>
104-
<Button outlined={true} theme={'secondary'}>
105-
View all logs
106-
</Button>
107-
</Link>
105+
View all logs
106+
</Button>
108107
</div>
109108
}
110109
content={<>{functions}</>}

0 commit comments

Comments
 (0)