From 41c3f714d173c21e1a1c44b20510def4ef6bbffe Mon Sep 17 00:00:00 2001 From: t-kikuc Date: Fri, 16 Aug 2024 13:02:50 +0900 Subject: [PATCH] fix lint error of web Signed-off-by: t-kikuc --- .../application-state-view/index.tsx | 3 +- .../lambda-resource/index.tsx | 33 +++++++++---------- .../modules/applications-live-state/index.ts | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/web/src/components/application-detail-page/application-state-view/index.tsx b/web/src/components/application-detail-page/application-state-view/index.tsx index 42a3afb6bc..544eff2630 100644 --- a/web/src/components/application-detail-page/application-state-view/index.tsx +++ b/web/src/components/application-detail-page/application-state-view/index.tsx @@ -157,9 +157,10 @@ export const ApplicationStateView: FC = memo( const resources = liveState.ecs?.resourcesList || []; return ; } - case ApplicationKind.LAMBDA: + case ApplicationKind.LAMBDA: { const resources = liveState.lambda?.resourcesList || []; return ; + } default: } diff --git a/web/src/components/application-detail-page/application-state-view/lambda-state-view/lambda-resource/index.tsx b/web/src/components/application-detail-page/application-state-view/lambda-state-view/lambda-resource/index.tsx index cbbed42f38..ca7a7608e5 100644 --- a/web/src/components/application-detail-page/application-state-view/lambda-state-view/lambda-resource/index.tsx +++ b/web/src/components/application-detail-page/application-state-view/lambda-state-view/lambda-resource/index.tsx @@ -24,20 +24,19 @@ export interface LambdaResourceProps { onClick: (resource: LambdaResourceState.AsObject) => void; } -export const LambdaResource: FC = memo(function LambdaResource({ - resource, - onClick, -}) { - const classes = useStyles(); - return ( - onClick(resource)}> - {resource.kind} -
- - - {resource.name} - -
-
- ); -}); +export const LambdaResource: FC = memo( + function LambdaResource({ resource, onClick }) { + const classes = useStyles(); + return ( + onClick(resource)}> + {resource.kind} +
+ + + {resource.name} + +
+
+ ); + } +); diff --git a/web/src/modules/applications-live-state/index.ts b/web/src/modules/applications-live-state/index.ts index da83e9ed82..da6322e8be 100644 --- a/web/src/modules/applications-live-state/index.ts +++ b/web/src/modules/applications-live-state/index.ts @@ -87,5 +87,5 @@ export { KubernetesResourceState, CloudRunResourceState, ECSResourceState, - LambdaResourceState + LambdaResourceState, } from "pipecd/web/model/application_live_state_pb";