We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a94a557 commit 95de6e5Copy full SHA for 95de6e5
1 file changed
src/components/ToolInfo.tsx
@@ -4,7 +4,7 @@ import styles from "./ToolInfo.module.css";
4
interface ToolInfoProps {
5
description: string;
6
author: string;
7
- codeLink: string;
+ codeLink?: string;
8
authType: "oauth2";
9
authProviderName?: string;
10
authProviderDocsUrl?: string;
@@ -33,12 +33,14 @@ const ToolInfo: React.FC<ToolInfoProps> = ({
33
<p>
34
<strong>Author: </strong> {author}
35
</p>
36
- <p>
37
- <strong>Code: </strong>
38
- <a href={codeLink} target="_blank" rel="noopener noreferrer">
39
- GitHub
40
- </a>
41
- </p>
+ {codeLink && (
+ <p>
+ <strong>Code: </strong>
+ <a href={codeLink} target="_blank" rel="noopener noreferrer">
+ GitHub
+ </a>
42
+ </p>
43
+ )}
44
45
<strong>Auth: </strong>
46
{authType.toLowerCase() === "oauth2" ? (
0 commit comments