Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 72c14ad

Browse files
committed
refactor(module-resolver): replace unnecessary path when import
1 parent 70435b6 commit 72c14ad

File tree

388 files changed

+701
-782
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

388 files changed

+701
-782
lines changed

components/AdderCell/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import React from 'react'
88
import PropTypes from 'prop-types'
99

10-
import { ICON_CMD } from '../../config'
10+
import { ICON_CMD } from 'config'
1111

12-
import { makeDebugger } from '../../utils'
12+
import { makeDebugger } from 'utils'
1313
import { AddWrapper, AddIcon, AddText } from './styles'
1414

1515
/* eslint-disable no-unused-vars */

components/AdderCell/styles/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from 'styled-components'
22

3+
import { animate } from 'utils'
34
import Img from '../../Img'
4-
import { animate } from '../../../utils'
55

66
export const AddWrapper = styled.div`
77
display: flex;

components/AvatarsRow/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ import PropTypes from 'prop-types'
99
import R from 'ramda'
1010
import { Tooltip } from 'antd'
1111

12-
import { ATATARS_LIST_LENGTH } from '../../config/general'
12+
import { ATATARS_LIST_LENGTH } from 'config/general'
1313

14+
import { makeDebugger, prettyNum } from 'utils'
1415
import { Avatars, AvatarsItem, AvatarsImg, AvatarsMore } from './styles'
1516

16-
import { makeDebugger, prettyNum } from '../../utils'
17-
1817
/* eslint-disable no-unused-vars */
1918
const debug = makeDebugger('c:AvatarsRow:index')
2019
/* eslint-enable no-unused-vars */

components/AvatarsRow/styles/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styled from 'styled-components'
22

3-
import { theme, cs } from '../../../utils'
3+
import { theme, cs } from 'utils'
44

55
export const Avatars = styled.ul`
66
${cs.flex()};

components/BannerCountBrief/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import React from 'react'
88
import PropTypes from 'prop-types'
99

10-
import { makeDebugger, toPercentNum } from '../../utils'
10+
import { makeDebugger, toPercentNum } from 'utils'
1111

1212
import {
1313
Result,

components/BaseStyled/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from 'styled-components'
2-
import { theme } from '../../utils'
2+
import { theme } from 'utils'
33

44
export const Center = styled.div`
55
/* display: flex;*/

components/CategoriesCell/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import PropTypes from 'prop-types'
99
import R from 'ramda'
1010
import { Icon } from 'antd'
1111

12-
import { ICON_CMD } from '../../config'
12+
import { ICON_CMD } from 'config'
1313

14+
import { uid, Trans } from 'utils'
1415
import AdderCell from '../AdderCell'
1516

1617
import {
@@ -21,7 +22,6 @@ import {
2122
AddIcon,
2223
} from './styles'
2324

24-
import { uid, Trans } from '../../utils'
2525
// import { inject, observer } from 'mobx-react'
2626
// import Link from 'next/link'
2727

components/CategoriesCell/styles/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from 'styled-components'
22

3+
import { animate } from 'utils'
34
import Img from '../../Img'
4-
import { animate } from '../../../utils'
55

66
export const UnsetText = styled.div`
77
color: tomato;

components/ColorCell/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import React from 'react'
88
import PropTypes from 'prop-types'
99

10-
import { makeDebugger } from '../../utils'
10+
import { makeDebugger } from 'utils'
1111

1212
import { ColorCell, ColorDot /* ColorTitle */ } from './styles'
1313
/* eslint-disable no-unused-vars */

components/CommunityCell/CommunitiesLogoList.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import React from 'react'
22

3-
// import { ICON_CMD } from '../../config'
3+
// import { ICON_CMD } from 'config'
4+
import { uid } from 'utils'
45
import { Wrapper, CommunityLogo } from './styles/communities_logo_list'
56

6-
import { uid } from '../../utils'
7-
87
const tooltipOffset = JSON.stringify({ top: 1 })
98
const CommunitiesLogoList = ({ array }) => (
109
<Wrapper>

0 commit comments

Comments
 (0)