Skip to content

Commit 91fe9f2

Browse files
committed
Add terminal icon to the terminal button
1 parent 7db1022 commit 91fe9f2

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

site/src/components/Resources/AgentRow.tsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -233,16 +233,12 @@ export const AgentRow: FC<AgentRowProps> = ({
233233
</>
234234
)}
235235

236-
{showBuiltinApps && (
237-
<>
238-
{agent.display_apps.includes("web_terminal") && (
239-
<TerminalLink
240-
workspaceName={workspace.name}
241-
agentName={agent.name}
242-
userName={workspace.owner_name}
243-
/>
244-
)}
245-
</>
236+
{showBuiltinApps && agent.display_apps.includes("web_terminal") && (
237+
<TerminalLink
238+
workspaceName={workspace.name}
239+
agentName={agent.name}
240+
userName={workspace.owner_name}
241+
/>
246242
)}
247243
</section>
248244
)}

site/src/components/Resources/TerminalLink/TerminalLink.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { FC } from "react";
44
import * as TypesGen from "api/typesGenerated";
55
import { generateRandomString } from "utils/random";
66
import { DisplayAppNameMap } from "../AppLink/AppLink";
7+
import { TerminalIcon } from "components/Icons/TerminalIcon";
78

89
export const Language = {
910
terminalTitle: (identifier: string): string => `Terminal - ${identifier}`,
@@ -46,7 +47,9 @@ export const TerminalLink: FC<React.PropsWithChildren<TerminalLinkProps>> = ({
4647
}}
4748
data-testid="terminal"
4849
>
49-
<AgentButton>{DisplayAppNameMap["web_terminal"]}</AgentButton>
50+
<AgentButton startIcon={<TerminalIcon />}>
51+
{DisplayAppNameMap["web_terminal"]}
52+
</AgentButton>
5053
</Link>
5154
);
5255
};

0 commit comments

Comments
 (0)