File tree Expand file tree Collapse file tree 8 files changed +59
-15
lines changed Expand file tree Collapse file tree 8 files changed +59
-15
lines changed Original file line number Diff line number Diff line change 39
39
"constate" : " ^1.3.2" ,
40
40
"craco-less" : " 1.9.0" ,
41
41
"dayjs" : " ^1.8.17" ,
42
- "react" : " ^16.12.0" ,
42
+ "nav-frontend-core" : " ^4.0.11" ,
43
+ "nav-frontend-typografi" : " ^2.0.17" ,
44
+ "nav-frontend-typografi-style" : " ^1.0.18" ,
45
+ "prop-types" : " ^15.7.2" ,
46
+ "react" : " ^16.13.0" ,
43
47
"react-dom" : " ^16.11.0" ,
44
48
"react-scripts" : " 3.0.1" ,
45
49
"typescript" : " 3.4.5"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { DataFetcher } from './components/datafetcher' ;
3
3
import StoreProvider from './stores/store-provider' ;
4
- import './app.less ' ;
4
+ import { Header } from './components/header/header ' ;
5
5
6
6
function App ( ) {
7
7
return (
8
- < main >
9
- < StoreProvider >
8
+ < StoreProvider >
9
+ < Header />
10
+ < main >
10
11
< DataFetcher >
11
- < p > Hello world </ p >
12
+ < p / >
12
13
</ DataFetcher >
13
- </ StoreProvider >
14
- </ main >
14
+ </ main >
15
+ </ StoreProvider >
15
16
) ;
16
17
}
17
18
Original file line number Diff line number Diff line change
1
+
2
+ .header {
3
+ width : 100% ;
4
+ padding : 2rem ;
5
+ background-color : white ;
6
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { Sidetittel } from 'nav-frontend-typografi' ;
3
+ import './header.less' ;
4
+
5
+ export const Header = ( ) => {
6
+ return (
7
+ < div className = "header" >
8
+ < Sidetittel > Beslutteroversikt</ Sidetittel >
9
+ </ div >
10
+ ) ;
11
+ } ;
Original file line number Diff line number Diff line change
1
+ .beslutteroversikt {
2
+ > * {
3
+ box-sizing : border-box ;
4
+ }
5
+
6
+ background-color : #f4f4f4 ;
7
+ }
8
+
9
+ body {
10
+ margin : 0 ;
11
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import App from './app';
4
4
import env from './utils/environment' ;
5
5
import * as dayjs from 'dayjs' ;
6
6
import 'dayjs/locale/nb' ;
7
+ import './index.less' ;
7
8
8
9
dayjs . locale ( 'nb' ) ;
9
10
You can’t perform that action at this time.
0 commit comments