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

Commit 2c4fb92

Browse files
committed
refactor(hooks): give hooks global import namespace
1 parent 2507b4b commit 2c4fb92

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"alias": {
5353
"@containers":"./containers",
5454
"@components":"./components",
55+
"@hooks":"./components/Hooks",
5556
"@config":"./config",
5657
"@stores":"./stores",
5758
"@model":"./stores/SharedModel",

containers/Doraemon/InputEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import React from 'react'
88

9-
import { useShortcut } from '@components/Hooks'
9+
import { useShortcut } from '@hooks'
1010
import InputPrefix from './InputPrefix'
1111

1212
import { EditorBar, InputBar, PrefixWraper } from './styles/input_editor'

containers/ErrorBox/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import React from 'react'
99
import { connectStore, buildLog } from '@utils'
1010

1111
import Modal from '@components/Modal'
12-
import { useShortcut } from '@components/Hooks'
12+
import { useShortcut } from '@hooks'
1313

1414
import Header from './Header'
1515
import Details from './Details'

containers/GlobalLayout/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import useNetwork from 'react-use/lib/useNetwork'
1111
import { ICON_CMD } from '@config'
1212
import { connectStore } from '@utils'
1313

14-
import { useShortcut, useMedia, usePlatform } from '@components/Hooks'
14+
import { useShortcut, useMedia, usePlatform } from '@hooks'
1515

1616
import { Wrapper, SubCommunitiesExpander, ExpanderIcon } from './styles'
1717
import { useInit, openDoraemon, queryDoraemon } from './logic'

containers/Preview/index.js

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

99
import { connectStore, buildLog } from '@utils'
10+
import { useShortcut } from '@hooks'
1011

11-
import { useShortcut } from '@components/Hooks'
1212
import SliderPreview from './SliderPreview'
1313
import ModalPreview from './ModalPreview'
1414
import Viewer from './Viewer'

containers/UsersThread/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import React from 'react'
88
import dynamic from 'next/dynamic'
99

1010
import { connectStore, buildLog } from '@utils'
11-
12-
import { useScript } from '@components/Hooks'
11+
import { useScript } from '@hooks'
1312

1413
import NumDashboard from './NumDashboard'
1514
import MapLoading from './MapLoading'

0 commit comments

Comments
 (0)