diff --git a/ui/components/compliance/compliance-header/compliance-scan-info.tsx b/ui/components/compliance/compliance-header/compliance-scan-info.tsx index 732c2b09fa..5e422ffee2 100644 --- a/ui/components/compliance/compliance-header/compliance-scan-info.tsx +++ b/ui/components/compliance/compliance-header/compliance-scan-info.tsx @@ -9,10 +9,10 @@ interface ComplianceScanInfoProps { providerInfo: { provider: ProviderType; alias?: string; - uid?: string; + uid: string; }; - attributes?: { - name?: string; + attributes: { + name: string; completed_at: string; }; }; @@ -29,17 +29,13 @@ export const ComplianceScanInfo: React.FC = ({ entityId={scan.providerInfo.uid} hideCopyButton /> - {scan.attributes && ( - <> - -
-

- {scan.attributes.name || "- -"} -

- -
- - )} + +
+

+ {scan.attributes.name || "- -"} +

+ +
); }; diff --git a/ui/types/components.ts b/ui/types/components.ts index 6ef23c8562..c8a8054f80 100644 --- a/ui/types/components.ts +++ b/ui/types/components.ts @@ -1,8 +1,6 @@ import { LucideIcon } from "lucide-react"; import { SVGProps } from "react"; -import { ProviderAccountProps } from "./providers"; - export type IconSvgProps = SVGProps & { size?: number; };