Fix tutorial tooltip being translated and causing a crash on web (#4995)

This commit is contained in:
Clément Pasteau
2023-02-21 17:04:55 +01:00
committed by GitHub
parent 68253017ee
commit 8e00e9615e

View File

@@ -138,13 +138,13 @@ const TooltipBody = ({
return (
<>
{tooltip.title && (
<Typography style={styles.title} variant="subtitle">
<Typography style={styles.title} variant="subtitle" translate="no">
<MarkdownText source={tooltip.title} allowParagraphs />
</Typography>
)}
{tooltip.title && tooltip.description && <span style={styles.divider} />}
{tooltip.description && (
<Typography style={styles.description}>
<Typography style={styles.description} translate="no">
<MarkdownText source={tooltip.description} allowParagraphs />
</Typography>
)}
@@ -205,7 +205,10 @@ const TooltipHeader = ({
noMargin
justifyContent={tooltipContent ? undefined : 'space-between'}
>
<Typography style={{ ...styles.headerText, color: progressColor }}>
<Typography
style={{ ...styles.headerText, color: progressColor }}
translate="no"
>
{progress}%
</Typography>
<LineStackLayout noMargin alignItems="center" overflow="hidden">
@@ -222,7 +225,7 @@ const TooltipHeader = ({
}}
>
<Cross />
<Typography style={styles.headerText}>
<Typography style={styles.headerText} translate="no">
<Trans>Quit tutorial</Trans>
</Typography>
</div>
@@ -232,6 +235,7 @@ const TooltipHeader = ({
<Typography
variant="body2"
style={{ ...styles.headerContentPreview, ...textEllipsisStyle }}
translate="no"
>
{tooltipContent}
</Typography>