fix: crash when using Google Translate, close #2121

https://github.com/facebook/react/issues/11538
Static text nodes must be wrapped when they are preceeded by a conditional expression.
This case looks like it cannot be captured using eslint.
This commit is contained in:
Stephen Zhou 2025-01-16 10:22:22 +08:00
parent a76814ddfc
commit 4ae7290de1
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -302,7 +302,8 @@ const BackTopIndicator: Component = memo(({ className }) => {
icon2={<CircleProgress percent={readPercent} size={14} strokeWidth={2} />}
status={readPercent === 0 ? "init" : "done"}
/>
{readPercent}%<br />
<span>{readPercent}%</span>
<br />
</div>
<MotionButtonBase
onClick={() => {