Skip to content

Commit

Permalink
[desk-tool] Move diff components to root of src
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent 931bcee commit 0253027
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'
import {Diff} from '@sanity/diff'
import {Annotation} from '../../panes/documentPane/history/types'
import {Annotation} from '../panes/documentPane/history/types'
import {DiffComponent} from './types'

import styles from './FallbackDiff.css'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {useUserColorManager} from '@sanity/base'
import {NumberDiff} from '@sanity/diff'
import React from 'react'
import {Annotation} from '../../panes/documentPane/history/types'
import {Annotation} from '../panes/documentPane/history/types'
import {AnnotationTooltip} from './annotationTooltip'
import {getAnnotationColor} from './helpers'
import {DiffComponent} from './types'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {useUserColorManager} from '@sanity/base'
import {StringDiffSegment, StringDiff} from '@sanity/diff'
import React from 'react'
import {Annotation} from '../../panes/documentPane/history/types'
import {Annotation} from '../panes/documentPane/history/types'
import {AnnotationTooltip} from './annotationTooltip'
import {getAnnotationColor} from './helpers'
import {DiffComponent} from './types'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import {Tooltip} from 'react-tippy'
import {Annotation} from '../../../panes/documentPane/history/types'
import {Annotation} from '../../panes/documentPane/history/types'

import styles from './annotationTooltip.css'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {UserColorManager} from '@sanity/base'
import {parseToRgb} from 'polished'
import {Annotation} from '../../panes/documentPane/history/types'
import {Annotation} from '../panes/documentPane/history/types'

interface RGB {
red: number
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ComponentType} from 'react'
import {Diff} from '@sanity/diff'
import {Annotation} from '../../panes/documentPane/history/types'
import {Annotation} from '../panes/documentPane/history/types'

export type DiffComponent<T extends Diff<Annotation> = Diff<Annotation>> = ComponentType<
DiffProps<T>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {diffItem} from 'sanity-diff-patch'
import {useDocumentOperation} from '@sanity/react-hooks'
import {Diff, NoDiff, Path} from '@sanity/diff'
import {toString as pathToString} from '@sanity/util/paths'
import {FallbackDiff} from '../../../components/diffs/FallbackDiff'
import {resolveDiffComponent} from '../../../components/diffs/resolveDiffComponent'
import {FallbackDiff} from '../../../diffs/FallbackDiff'
import {resolveDiffComponent} from '../../../diffs/resolveDiffComponent'
import {Annotation} from '../history/types'
import {SchemaType, ChangeNode, FieldChangeNode, GroupChangeNode} from '../types'
import {buildChangeList} from './buildChangeList'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable max-depth */
import {toString as pathToString} from '@sanity/util/paths'
import {Diff, ObjectDiff, Path, FieldDiff} from '@sanity/diff'
import {resolveDiffComponent} from '../../../components/diffs/resolveDiffComponent'
import {resolveDiffComponent} from '../../../diffs/resolveDiffComponent'
import {Annotation} from '../history/types'
import {SchemaType, ChangeNode} from '../types'

Expand Down

0 comments on commit 0253027

Please sign in to comment.