fix margin for tables Alerts

This commit is contained in:
vchikalkin 2023-03-28 18:45:33 +03:00
parent 631272101d
commit 291812f349

View File

@ -47,12 +47,14 @@ function getPaymentsTableErrors({ $tables, $process }) {
const title = payments.validation.params.err_title;
return errors.map(({ key, message }) => (
<Alert
key={key}
type={$process.has('Unlimited') ? 'warning' : 'error'}
showIcon
message={Message(title, message)}
/>
<AlertWrapper>
<Alert
key={key}
type={$process.has('Unlimited') ? 'warning' : 'error'}
showIcon
message={Message(title, message)}
/>
</AlertWrapper>
));
}
@ -62,12 +64,14 @@ function getInsuranceTableErrors({ $tables, $process }) {
const title = insurance.validation.params.err_title;
return errors.map(({ key, message }) => (
<Alert
key={key}
type={$process.has('Unlimited') ? 'warning' : 'error'}
showIcon
message={Message(title, message)}
/>
<AlertWrapper>
<Alert
key={key}
type={$process.has('Unlimited') ? 'warning' : 'error'}
showIcon
message={Message(title, message)}
/>
</AlertWrapper>
));
}