|
1 | 1 | import { Icon } from "@iconify-icon/react"; |
2 | 2 | import { Link } from "react-router"; |
3 | 3 |
|
4 | | -import { ARTIFACT_OBJECT, CHECK_OBJECT, TASK_OBJECT } from "@/config/constants"; |
| 4 | +import { CHECK_OBJECT, TASK_OBJECT } from "@/config/constants"; |
5 | 5 |
|
6 | 6 | import { constructPath } from "@/shared/api/rest/fetch"; |
7 | 7 | import { DateDisplay } from "@/shared/components/display/date-display"; |
@@ -131,7 +131,6 @@ const ProposedChangesData = ({ |
131 | 131 | <div className="flex items-center justify-end gap-4"> |
132 | 132 | <ProposedChangesChecks validations={validations} /> |
133 | 133 | <ProposedChangesTasks id={id} /> |
134 | | - <ProposedChangesArtifacts id={id} /> |
135 | 134 | <ProposedChangesComments comments={comments} /> |
136 | 135 | </div> |
137 | 136 | </div> |
@@ -161,22 +160,6 @@ const ProposedChangesChecks = ({ validations }: { validations: number }) => { |
161 | 160 | ); |
162 | 161 | }; |
163 | 162 |
|
164 | | -const ProposedChangesArtifacts = ({ id }: { id: string }) => { |
165 | | - const { schema } = useSchema(ARTIFACT_OBJECT); |
166 | | - const { data } = useObjectsCount({ |
167 | | - objectKind: ARTIFACT_OBJECT, |
168 | | - filters: [{ name: "object__ids", value: [id] }], |
169 | | - }); |
170 | | - |
171 | | - return ( |
172 | | - <Tooltip enabled content="Artifacts"> |
173 | | - <span className="flex items-center gap-1"> |
174 | | - <Icon icon={schema?.icon ?? "mdi:file-outline"} /> {data ?? 0} |
175 | | - </span> |
176 | | - </Tooltip> |
177 | | - ); |
178 | | -}; |
179 | | - |
180 | 163 | const ProposedChangesTasks = ({ id }: { id: string }) => { |
181 | 164 | const { schema } = useSchema(TASK_OBJECT); |
182 | 165 | const { data } = useObjectsCount({ |
|
0 commit comments