Skip to content

Commit f776a56

Browse files
committedJul 12, 2021
refactor(field): remove css from ptdiff
1 parent e18dc72 commit f776a56

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed
 

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

-11
This file was deleted.

‎packages/@sanity/field/src/types/portableText/diff/PTDiff.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import {DiffComponent, ObjectDiff, ObjectSchemaType} from '../../../diff'
44
import PortableText from './components/PortableText'
55
import {createPortableTextDiff} from './helpers'
66

7-
import styles from './PTDiff.css'
8-
97
export const PTDiff: DiffComponent<ObjectDiff> = function PTDiff({
108
diff,
119
schemaType,
@@ -18,6 +16,5 @@ export const PTDiff: DiffComponent<ObjectDiff> = function PTDiff({
1816
ptDiff,
1917
schemaType,
2018
])
21-
const classNames = [styles.root, styles[diff.action]].join(' ')
22-
return <div className={classNames}>{portableTextDiff}</div>
19+
return <div data-diff-action={diff.action}>{portableTextDiff}</div>
2320
}

2 commit comments

Comments
 (2)

vercel[bot] commented on Jul 12, 2021

@vercel[bot]

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

vercel[bot] commented on Jul 12, 2021

@vercel[bot]

Successfully deployed to the following URLs:

perf-studio – ./

perf-studio-git-next.sanity.build
perf-studio.sanity.build

Please sign in to comment.