Skip to content

Commit 2c6f33a

Browse files
committedJul 12, 2021
refactor(field): migrate ptdiff paragraph to @sanity/ui
1 parent 942a0a3 commit 2c6f33a

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed
 

‎packages/@sanity/field/src/types/portableText/diff/components/Paragraph.css

-13
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import React from 'react'
2-
import styles from './Paragraph.css'
2+
import styled from 'styled-components'
3+
4+
const StyledParagraph = styled.p`
5+
text-transform: none;
6+
white-space: wrap;
7+
overflow-wrap: break-word;
8+
margin: 0;
9+
`
310

411
export default function Paragraph({children}: {children: React.ReactNode}): JSX.Element {
5-
return <div className={styles.root}>{children}</div>
12+
return <StyledParagraph>{children}</StyledParagraph>
613
}

0 commit comments

Comments
 (0)
Please sign in to comment.