Fix dialog windows rendering
This commit is contained in:
parent
2073f6ad21
commit
b3720a6361
4 changed files with 38 additions and 10 deletions
|
@ -383,9 +383,13 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
}?"
|
}?"
|
||||||
id="categoryDetailsDeleteCategoriesDialogContent"
|
id="categoryDetailsDeleteCategoriesDialogContent"
|
||||||
values={{
|
values={{
|
||||||
counter: params.ids.length,
|
counter: maybe(
|
||||||
|
() => params.ids.length
|
||||||
|
),
|
||||||
displayQuantity: (
|
displayQuantity: (
|
||||||
<strong>{params.ids.length}</strong>
|
<strong>
|
||||||
|
{maybe(() => params.ids.length)}
|
||||||
|
</strong>
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -425,9 +429,13 @@ export const CategoryDetails: React.StatelessComponent<
|
||||||
}?"
|
}?"
|
||||||
id="categoryDetailsDeleteProductsDialogContent"
|
id="categoryDetailsDeleteProductsDialogContent"
|
||||||
values={{
|
values={{
|
||||||
counter: params.ids.length,
|
counter: maybe(
|
||||||
|
() => params.ids.length
|
||||||
|
),
|
||||||
displayQuantity: (
|
displayQuantity: (
|
||||||
<strong>{params.ids.length}</strong>
|
<strong>
|
||||||
|
{maybe(() => params.ids.length)}
|
||||||
|
</strong>
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -140,8 +140,10 @@ export const CategoryList: React.StatelessComponent<CategoryListProps> = ({
|
||||||
}?"
|
}?"
|
||||||
id="categoryListDeleteCategoriesDialogContent"
|
id="categoryListDeleteCategoriesDialogContent"
|
||||||
values={{
|
values={{
|
||||||
counter: params.ids.length,
|
counter: maybe(() => params.ids.length),
|
||||||
displayQuantity: <strong>{params.ids.length}</strong>
|
displayQuantity: (
|
||||||
|
<strong>{maybe(() => params.ids.length)}</strong>
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
|
|
|
@ -361,7 +361,10 @@ export const CollectionDetails: React.StatelessComponent<
|
||||||
}?"
|
}?"
|
||||||
id="collectionDetailsUnassignProductsDialogContent"
|
id="collectionDetailsUnassignProductsDialogContent"
|
||||||
values={{
|
values={{
|
||||||
number: <strong>{params.ids.length}</strong>
|
counter: maybe(() => params.ids.length),
|
||||||
|
displayQuantity: (
|
||||||
|
<strong>{maybe(() => params.ids.length)}</strong>
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
|
|
@ -208,7 +208,12 @@ export const CollectionList: React.StatelessComponent<CollectionListProps> = ({
|
||||||
}?"
|
}?"
|
||||||
id="collectionListPublishCollectionsDialogContent"
|
id="collectionListPublishCollectionsDialogContent"
|
||||||
values={{
|
values={{
|
||||||
number: params.ids.length
|
counter: maybe(() => params.ids.length),
|
||||||
|
displayQuantity: (
|
||||||
|
<strong>
|
||||||
|
{maybe(() => params.ids.length)}
|
||||||
|
</strong>
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
@ -243,7 +248,12 @@ export const CollectionList: React.StatelessComponent<CollectionListProps> = ({
|
||||||
}?"
|
}?"
|
||||||
id="collectionListUnpublishCollectionsDialogContent"
|
id="collectionListUnpublishCollectionsDialogContent"
|
||||||
values={{
|
values={{
|
||||||
number: params.ids.length
|
counter: maybe(() => params.ids.length),
|
||||||
|
displayQuantity: (
|
||||||
|
<strong>
|
||||||
|
{maybe(() => params.ids.length)}
|
||||||
|
</strong>
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
@ -277,7 +287,12 @@ export const CollectionList: React.StatelessComponent<CollectionListProps> = ({
|
||||||
}?"
|
}?"
|
||||||
id="collectionListDeleteCollectionsDialogContent"
|
id="collectionListDeleteCollectionsDialogContent"
|
||||||
values={{
|
values={{
|
||||||
number: params.ids.length
|
counter: maybe(() => params.ids.length),
|
||||||
|
displayQuantity: (
|
||||||
|
<strong>
|
||||||
|
{maybe(() => params.ids.length)}
|
||||||
|
</strong>
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</DialogContentText>
|
</DialogContentText>
|
||||||
|
|
Loading…
Reference in a new issue