Skip to content

Commit

Permalink
fix lint error of web
Browse files Browse the repository at this point in the history
Signed-off-by: t-kikuc <[email protected]>
  • Loading branch information
t-kikuc committed Aug 16, 2024
1 parent b2f0a64 commit 41c3f71
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@ export const ApplicationStateView: FC<ApplicationStateViewProps> = memo(
const resources = liveState.ecs?.resourcesList || [];
return <ECSStateView resources={resources} />;
}
case ApplicationKind.LAMBDA:
case ApplicationKind.LAMBDA: {
const resources = liveState.lambda?.resourcesList || [];
return <LambdaStateView resources={resources} />;
}
default:
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,19 @@ export interface LambdaResourceProps {
onClick: (resource: LambdaResourceState.AsObject) => void;
}

export const LambdaResource: FC<LambdaResourceProps> = memo(function LambdaResource({
resource,
onClick,
}) {
const classes = useStyles();
return (
<Paper square className={classes.root} onClick={() => onClick(resource)}>
<Typography variant="caption">{resource.kind}</Typography>
<div className={classes.nameLine}>
<LambdaResourceHealthStatusIcon health={resource.healthStatus} />
<Typography variant="subtitle2" className={classes.name}>
{resource.name}
</Typography>
</div>
</Paper>
);
});
export const LambdaResource: FC<LambdaResourceProps> = memo(
function LambdaResource({ resource, onClick }) {
const classes = useStyles();
return (
<Paper square className={classes.root} onClick={() => onClick(resource)}>
<Typography variant="caption">{resource.kind}</Typography>
<div className={classes.nameLine}>
<LambdaResourceHealthStatusIcon health={resource.healthStatus} />
<Typography variant="subtitle2" className={classes.name}>
{resource.name}
</Typography>
</div>
</Paper>
);
}
);
2 changes: 1 addition & 1 deletion web/src/modules/applications-live-state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ export {
KubernetesResourceState,
CloudRunResourceState,
ECSResourceState,
LambdaResourceState
LambdaResourceState,
} from "pipecd/web/model/application_live_state_pb";

0 comments on commit 41c3f71

Please sign in to comment.