style: always use relative path first

This commit is contained in:
unix
2020-04-14 19:06:47 +08:00
parent fe1deab145
commit 2f86f926c3
4 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ import AutoCompleteEmpty from './auto-complete-empty'
import { AutoCompleteContext, AutoCompleteConfig } from './auto-complete-context'
import { NormalSizes, NormalTypes } from '../utils/prop-types'
import Loading from '../loading'
import { pickChild } from 'components/utils/collections'
import { pickChild } from '../utils/collections'
export type AutoCompleteOption = {
label: string

View File

@@ -3,7 +3,7 @@ import TreeFile from './tree-file'
import TreeFolder from './tree-folder'
import { TreeContext } from './tree-context'
import { tuple } from '../utils/prop-types'
import { sortChildren } from 'components/file-tree/tree-help'
import { sortChildren } from '../file-tree/tree-help'
const FileTreeValueType = tuple(
'directory',

View File

@@ -1,5 +1,5 @@
import { Dispatch, MutableRefObject, SetStateAction } from 'react'
import useCurrentState from 'components/utils/use-current-state'
import useCurrentState from '../utils/use-current-state'
const useModal = (initialVisible: boolean = false): {
visible: boolean

View File

@@ -1,7 +1,7 @@
import React, { useEffect, useMemo, useState } from 'react'
import useTheme from '../styles/use-theme'
import withDefaults from 'components/utils/with-defaults'
import { NormalTypes } from 'components/utils/prop-types'
import withDefaults from '../utils/with-defaults'
import { NormalTypes } from '../utils/prop-types'
import { getColors } from '../input/styles'
interface Props {