chore(ui): lint

This commit is contained in:
Pepe Fagoaga
2025-06-04 13:12:20 +02:00
parent 4210b0fab0
commit 78de7354cf
@@ -9,10 +9,10 @@ interface ComplianceScanInfoProps {
providerInfo: {
provider: ProviderType;
alias?: string;
uid: string;
uid?: string;
};
attributes: {
name: string;
attributes?: {
name?: string;
completed_at: string;
};
};
@@ -32,9 +32,12 @@ export const ComplianceScanInfo: React.FC<ComplianceScanInfoProps> = ({
<Divider orientation="vertical" className="mx-2 h-6" />
<div className="flex flex-col items-start">
<p className="text-xs text-default-500">
{scan.attributes.name || "- -"}
{scan.attributes?.name || "- -"}
</p>
<DateWithTime inline dateTime={scan.attributes.completed_at} />
<DateWithTime
inline
dateTime={scan?.attributes?.completed_at || null}
/>
</div>
</div>
);