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

Commit 1237bbf

Browse files
committed
move styled-component to styles dir && modify generators
1 parent fa14ac4 commit 1237bbf

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

containers/UniversePanel/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
RepoLang,
3333
RepoStar,
3434
SubInfoWraper,
35-
} from './Modal'
35+
} from './styles'
3636

3737
const debug = makeDebugger('C:UniversePanel')
3838

containers/UniversePanel/Modal.js renamed to containers/UniversePanel/styles/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import styled, { keyframes } from 'styled-components'
22

3-
import Img from '../../components/Img'
3+
import Img from '../../../components/Img'
44

5-
import searchIcon from '../../static/search.svg'
6-
import loadingIcon from '../../static/loading.svg'
5+
import searchIcon from '../../../static/search.svg'
6+
import loadingIcon from '../../../static/loading.svg'
77

88
const rotate360 = keyframes`
99
from {
@@ -146,8 +146,8 @@ export const RepoStar = styled.div`
146146
`
147147

148148
/*
149-
text-overflow: ellipsis;
150-
width: 400px;
151-
white-space: nowrap;
152-
overflow: hidden;
153-
*/
149+
text-overflow: ellipsis;
150+
width: 400px;
151+
white-space: nowrap;
152+
overflow: hidden;
153+
*/

utils/scripts/generators/container/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ module.exports = {
6060
templateFile: './container/test.js.hbs',
6161
abortOnFail: true,
6262
},
63+
{
64+
type: 'add',
65+
path: '../../../containers/{{properCase name}}/styles/index.js',
66+
templateFile: './container/styles.js.hbs',
67+
abortOnFail: true,
68+
},
6369
]
6470

6571
// If they want a i18n messages file
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// import styled from 'styled-components'

0 commit comments

Comments
 (0)