mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
chore(ui): lint
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user