File tree 6 files changed +962
-908
lines changed 6 files changed +962
-908
lines changed Original file line number Diff line number Diff line change 24
24
"react-redux" : " ^7.2.0" ,
25
25
"react-router-config" : " ^5.1.1" ,
26
26
"react-router-dom" : " ^5.1.2" ,
27
- "react-scripts" : " 3.4.0" ,
28
- "redux" : " ^4.0.5" ,
29
- "redux-immutable" : " ^4.0.0" ,
30
- "redux-thunk" : " ^2.3.0" ,
27
+ "react-scripts" : " 3.4.1" ,
31
28
"styled-components" : " ^5.0.1" ,
32
29
"timeago.js" : " ^4.0.2" ,
33
30
"typescript" : " ^3.8.3"
Original file line number Diff line number Diff line change @@ -3,10 +3,14 @@ import { BaseLayout } from './layouts'
3
3
import { GlobalStyle } from './style/global'
4
4
import { BrowserRouter , Switch , Route } from 'react-router-dom'
5
5
6
+ const basename : string = process . env . NODE_ENV === 'production'
7
+ ? '/cnode'
8
+ : '/'
9
+
6
10
const App : React . FC = ( props ) => {
7
11
return (
8
12
< div className = "App" >
9
- < BrowserRouter basename = { '/cnode' } >
13
+ < BrowserRouter basename = { basename } >
10
14
< GlobalStyle />
11
15
12
16
< Switch >
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import styled from 'styled-components'
6
6
// polyfill
7
7
import 'intersection-observer'
8
8
9
- export interface Iprops {
9
+ export interface IProps {
10
10
loading : boolean ;
11
11
completed : boolean ;
12
12
children : React . ReactNode ;
@@ -19,7 +19,7 @@ const TipWord = styled.div`
19
19
text-align: center;
20
20
`
21
21
22
- const ScrollList : React . FC < Iprops > = ( props : Iprops ) => {
22
+ const ScrollList : React . FC < IProps > = ( props : IProps ) => {
23
23
const { completed, onLoad, loading } = props
24
24
25
25
const hanlder = useCallback ( entries => {
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ export interface Tabber {
7
7
route : string ;
8
8
}
9
9
10
- interface Iprops {
10
+ interface IProps {
11
11
value : Array < Tabber > ;
12
12
}
13
13
14
- const Tabbar : React . FC < Iprops > = ( props : Iprops ) => {
14
+ const Tabbar : React . FC < IProps > = ( props : IProps ) => {
15
15
return (
16
16
< TabbarWrapper >
17
17
{
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
COLOR_GREY_INFO
11
11
} from 'style/constants'
12
12
13
- interface Iprops {
13
+ interface IProps {
14
14
type : string
15
15
}
16
16
@@ -42,7 +42,7 @@ const TagUI = styled.label<{ color: string }>`
42
42
border-radius: 4px;
43
43
`
44
44
45
- const Tag : React . FC < Iprops > = ( props : Iprops ) => {
45
+ const Tag : React . FC < IProps > = ( props : IProps ) => {
46
46
const type = props . type || 'default'
47
47
return < TagUI color = { DICT [ type ] . color } > { DICT [ type ] . text } </ TagUI >
48
48
}
You can’t perform that action at this time.
0 commit comments