|
|
|
@ -43,9 +43,11 @@ const Labels = (props: any) => {
|
|
|
|
[formik]
|
|
|
|
[formik]
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const emptyLabels = labels.length === 0;
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Root sx={{ alignItems: labels.length > 0 ? "flex-start" : "center" }}>
|
|
|
|
<Root sx={{ alignItems: emptyLabels ? "center" : "flex-start" }}>
|
|
|
|
{labels.length > 0 && (
|
|
|
|
{!emptyLabels && (
|
|
|
|
<Records>
|
|
|
|
<Records>
|
|
|
|
{labels.map((label: unknown, index: number) => (
|
|
|
|
{labels.map((label: unknown, index: number) => (
|
|
|
|
<Record
|
|
|
|
<Record
|
|
|
|
@ -67,7 +69,7 @@ const Labels = (props: any) => {
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
</Records>
|
|
|
|
</Records>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
{labels.length === 0 && (
|
|
|
|
{emptyLabels && (
|
|
|
|
<p className="mt-4 text-md text-gray-500 dark:text-gray-400 text-center">
|
|
|
|
<p className="mt-4 text-md text-gray-500 dark:text-gray-400 text-center">
|
|
|
|
The service does not have any labels.
|
|
|
|
The service does not have any labels.
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
|