mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
use div instead of p
This commit is contained in:
parent
91f6228969
commit
862ac6670d
@ -19,13 +19,13 @@ export type TextProps = {
|
||||
|
||||
const Text: React.FC<TextProps> = ({ value, cssStyle }) => {
|
||||
if (value.format === 'md') {
|
||||
const P = styled.p`
|
||||
const Div = styled.div`
|
||||
${cssStyle}
|
||||
`;
|
||||
return (
|
||||
<P>
|
||||
<Div>
|
||||
<ReactMarkdown>{value.raw}</ReactMarkdown>
|
||||
</P>
|
||||
</Div>
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user