Screen-sharing indicator bugfix (#1705)

This commit is contained in:
Salah Benmoussati authored and GitHub committed 2023-02-13 09:00:28 +01:00
1 parent 5e9d7d7dae
commit 0c594fc46b
2 files changed
+10 -8

No files matched your search

@@ -7,12 +7,14 @@ exports[`screen sharing indicator should render correctly 1`] = `
<span
className="text-label"
>
You are sharing your screen on
<b>
Symphony
</b>
<span>
You are sharing your screen on
<b>
Symphony
</b>
</span>
</span>
<span
className="buttons"
@@ -121,11 +121,11 @@ export default class ScreenSharingIndicator extends React.Component<
}
const appNameEndPosition = appNameStartPosition + appName.length;
return (
<>
<span>
{`${translatedLabel.slice(0, appNameStartPosition)}`}
<b> {appName} </b>
{translatedLabel.slice(appNameEndPosition)}
</>
</span>
);
}
}