Skip to content

Commit 044076a

Browse files
committed
Fix lint
1 parent 29e2625 commit 044076a

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

site/src/modules/resources/AgentExternal.stories.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import type { Meta, StoryObj } from "@storybook/react-vite";
21
import { chromatic } from "testHelpers/chromatic";
32
import { MockWorkspace, MockWorkspaceAgent } from "testHelpers/entities";
43
import { withDashboardProvider } from "testHelpers/storybook";
4+
import type { Meta, StoryObj } from "@storybook/react-vite";
55
import { AgentExternal } from "./AgentExternal";
66

77
const meta: Meta<typeof AgentExternal> = {
88
title: "modules/resources/AgentExternal",
99
component: AgentExternal,
1010
args: {
11-
isExternalAgent: true,
1211
agent: {
1312
...MockWorkspaceAgent,
1413
status: "connecting",
@@ -61,7 +60,6 @@ export const DifferentOS: Story = {
6160

6261
export const NotExternalAgent: Story = {
6362
args: {
64-
isExternalAgent: false,
6563
agent: {
6664
...MockWorkspaceAgent,
6765
status: "connecting",

site/src/modules/resources/AgentExternal.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,11 @@ import type { FC } from "react";
77
import { useQuery } from "react-query";
88

99
interface AgentExternalProps {
10-
isExternalAgent: boolean;
1110
agent: WorkspaceAgent;
1211
workspace: Workspace;
1312
}
1413

15-
export const AgentExternal: FC<AgentExternalProps> = ({
16-
isExternalAgent,
17-
agent,
18-
workspace,
19-
}) => {
20-
if (!isExternalAgent) {
21-
return null;
22-
}
23-
14+
export const AgentExternal: FC<AgentExternalProps> = ({ agent, workspace }) => {
2415
const {
2516
data: credentials,
2617
error,

site/src/modules/resources/AgentRow.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,7 @@ export const AgentRow: FC<AgentRowProps> = ({
298298
{isExternalAgent &&
299299
(agent.status === "timeout" || agent.status === "connecting") &&
300300
workspace_external_agent && (
301-
<AgentExternal
302-
isExternalAgent={isExternalAgent}
303-
agent={agent}
304-
workspace={workspace}
305-
/>
301+
<AgentExternal agent={agent} workspace={workspace} />
306302
)}
307303

308304
<AgentMetadata initialMetadata={initialMetadata} agent={agent} />

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy