Skip to content

Commit 468117a

Browse files
committedJul 12, 2021
refactor(field): migrate ptdiff blockquote to styled-components
1 parent 697e36f commit 468117a

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed
 

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

-7
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import React from 'react'
2-
import styles from './Blockquote.css'
2+
import styled from 'styled-components'
3+
4+
const Quote = styled.blockquote`
5+
margin: 0;
6+
`
37

48
export default function Blockquote({children}: {children: React.ReactNode}): JSX.Element {
59
return (
6-
<div className={styles.root}>
7-
<blockquote className={styles.quote}>{children}</blockquote>
10+
<div>
11+
<Quote>{children}</Quote>
812
</div>
913
)
1014
}

0 commit comments

Comments
 (0)
Please sign in to comment.