1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-14 19:02:33 +03:00

Iterate text alignment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2020-05-21 17:12:16 +01:00
parent 5995a27ced
commit 6a0ffe905f
3 changed files with 7 additions and 3 deletions

View File

@@ -50,7 +50,11 @@ export default class ToastContainer extends React.Component {
"mx_Toast_hasIcon": icon,
[`mx_Toast_icon_${icon}`]: icon,
});
const countIndicator = isStacked ? _t(" (1/%(totalCount)s)", {totalCount}) : null;
let countIndicator;
if (isStacked) {
countIndicator = `1/${totalCount}`;
}
const toastProps = Object.assign({}, props, {
key,