Commit 80e40018 authored by Chunchi Che's avatar Chunchi Che

fix removeChild error in translate mode

parent 8f6f971f
Pipeline #26255 passed with stages
in 9 minutes
...@@ -22,7 +22,7 @@ const RegexWrapper: React.FC<{ ...@@ -22,7 +22,7 @@ const RegexWrapper: React.FC<{
Wrapper: React.FunctionComponent<any>; Wrapper: React.FunctionComponent<any>;
}> = ({ text, re, Wrapper }) => { }> = ({ text, re, Wrapper }) => {
const matches = text.match(re); const matches = text.match(re);
if (!matches) return <>{text}</>; if (!matches) return <span>{text}</span>;
const sepRe = new RegExp( const sepRe = new RegExp(
matches?.reduce((acc, cur) => `${acc}|${cur}`) ?? "", matches?.reduce((acc, cur) => `${acc}|${cur}`) ?? "",
); );
......
...@@ -360,7 +360,7 @@ const ActionButton: React.FC<{ ...@@ -360,7 +360,7 @@ const ActionButton: React.FC<{
{stage === RoomStage.WAITING ? ( {stage === RoomStage.WAITING ? (
<> <>
<IconFont type="icon-play" size={12} /> <IconFont type="icon-play" size={12} />
开始游戏 <span>开始游戏</span>
</> </>
) : stage === RoomStage.HAND_SELECTING ? ( ) : stage === RoomStage.HAND_SELECTING ? (
<> <>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment