Fix dialog windows rendering

This commit is contained in:
dominik-zeglen 2019-08-21 14:44:29 +02:00
parent 2073f6ad21
commit b3720a6361
4 changed files with 38 additions and 10 deletions

View file

@ -383,9 +383,13 @@ export const CategoryDetails: React.StatelessComponent<
}?"
id="categoryDetailsDeleteCategoriesDialogContent"
values={{
counter: params.ids.length,
counter: maybe(
() => params.ids.length
),
displayQuantity: (
<strong>{params.ids.length}</strong>
<strong>
{maybe(() => params.ids.length)}
</strong>
)
}}
/>
@ -425,9 +429,13 @@ export const CategoryDetails: React.StatelessComponent<
}?"
id="categoryDetailsDeleteProductsDialogContent"
values={{
counter: params.ids.length,
counter: maybe(
() => params.ids.length
),
displayQuantity: (
<strong>{params.ids.length}</strong>
<strong>
{maybe(() => params.ids.length)}
</strong>
)
}}
/>

View file

@ -140,8 +140,10 @@ export const CategoryList: React.StatelessComponent<CategoryListProps> = ({
}?"
id="categoryListDeleteCategoriesDialogContent"
values={{
counter: params.ids.length,
displayQuantity: <strong>{params.ids.length}</strong>
counter: maybe(() => params.ids.length),
displayQuantity: (
<strong>{maybe(() => params.ids.length)}</strong>
)
}}
/>
<DialogContentText>

View file

@ -361,7 +361,10 @@ export const CollectionDetails: React.StatelessComponent<
}?"
id="collectionDetailsUnassignProductsDialogContent"
values={{
number: <strong>{params.ids.length}</strong>
counter: maybe(() => params.ids.length),
displayQuantity: (
<strong>{maybe(() => params.ids.length)}</strong>
)
}}
/>
</DialogContentText>

View file

@ -208,7 +208,12 @@ export const CollectionList: React.StatelessComponent<CollectionListProps> = ({
}?"
id="collectionListPublishCollectionsDialogContent"
values={{
number: params.ids.length
counter: maybe(() => params.ids.length),
displayQuantity: (
<strong>
{maybe(() => params.ids.length)}
</strong>
)
}}
/>
</DialogContentText>
@ -243,7 +248,12 @@ export const CollectionList: React.StatelessComponent<CollectionListProps> = ({
}?"
id="collectionListUnpublishCollectionsDialogContent"
values={{
number: params.ids.length
counter: maybe(() => params.ids.length),
displayQuantity: (
<strong>
{maybe(() => params.ids.length)}
</strong>
)
}}
/>
</DialogContentText>
@ -277,7 +287,12 @@ export const CollectionList: React.StatelessComponent<CollectionListProps> = ({
}?"
id="collectionListDeleteCollectionsDialogContent"
values={{
number: params.ids.length
counter: maybe(() => params.ids.length),
displayQuantity: (
<strong>
{maybe(() => params.ids.length)}
</strong>
)
}}
/>
</DialogContentText>