diff --git a/client/ts/src/types.ts b/client/ts/src/types.ts
index 50ea1ad6b..cd9b7b44b 100644
--- a/client/ts/src/types.ts
+++ b/client/ts/src/types.ts
@@ -1,5 +1,5 @@
/*
- Generated by typeshare 1.6.0
+ Generated by typeshare 1.7.0
*/
export interface MongoIdObj {
diff --git a/frontend/src/components/resources/build/index.tsx b/frontend/src/components/resources/build/index.tsx
index 254b26c56..fe8496746 100644
--- a/frontend/src/components/resources/build/index.tsx
+++ b/frontend/src/components/resources/build/index.tsx
@@ -121,7 +121,10 @@ export const BuildComponents: RequiredResourceComponents = {
Page: {
Config: ({ id }) => ,
},
- Icon,
+ Icon: ({ id }) => {
+ if (id) return ;
+ else return ;
+ },
Actions: ({ id }) => {
const building = useRead("GetBuildActionState", { id }).data?.building;
const { mutate, isPending } = useExecute("RunBuild");
diff --git a/frontend/src/components/resources/deployment/index.tsx b/frontend/src/components/resources/deployment/index.tsx
index 9b4a68bd0..542ba8558 100644
--- a/frontend/src/components/resources/deployment/index.tsx
+++ b/frontend/src/components/resources/deployment/index.tsx
@@ -34,7 +34,7 @@ const deployment_state_color = (state: Types.DockerContainerState) => {
};
const deployment_state_fill_color = (state: Types.DockerContainerState) => {
- return `fill-${deployment_state_color(state)}`
+ return `fill-${deployment_state_color(state)}`;
};
const deployment_state_text_color = (state: Types.DockerContainerState) => {
@@ -45,7 +45,9 @@ const Icon = ({ id }: { id?: string }) => {
const state = useDeployment(id)?.info.state;
return (
-
+
);
};
diff --git a/frontend/src/types.d.ts b/frontend/src/types.d.ts
index 7385afffb..8693f5fb0 100644
--- a/frontend/src/types.d.ts
+++ b/frontend/src/types.d.ts
@@ -6,7 +6,7 @@ type IdComponent = React.FC<{ id: string }>;
type OptionalIdComponent = React.FC<{ id?: string }>;
export interface RequiredResourceComponents {
- Icon: IdComponent;
+ Icon: OptionalIdComponent;
New: React.FC;