mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix tutorial tooltip being translated and causing a crash on web (#4995)
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user