mirror of https://github.com/msgbyte/tailchat
chore: 修复ci脚本问题
parent
6509f558c0
commit
e2ea551813
@ -1,9 +1,11 @@
|
|||||||
import React from 'react';
|
import React, { PropsWithChildren } from 'react';
|
||||||
import type { TagProps } from '../bbcode/type';
|
import type { TagProps } from '../bbcode/type';
|
||||||
|
|
||||||
export const PlainText: React.FC<TagProps> = React.memo((props) => (
|
export const PlainText: React.FC<PropsWithChildren<TagProps>> = React.memo(
|
||||||
<pre style={{ display: 'inline', whiteSpace: 'break-spaces' }}>
|
(props) => (
|
||||||
{props.children}
|
<pre style={{ display: 'inline', whiteSpace: 'break-spaces' }}>
|
||||||
</pre>
|
{props.children}
|
||||||
));
|
</pre>
|
||||||
|
)
|
||||||
|
);
|
||||||
PlainText.displayName = 'PlainText';
|
PlainText.displayName = 'PlainText';
|
||||||
|
Loading…
Reference in New Issue