Commit e4100f7 1 parent 7536f4e commit e4100f7 Copy full SHA for e4100f7
File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
-
2
1
import { useState , useEffect } from 'react' ;
3
2
import { debounce } from 'lodash' ;
4
3
@@ -55,10 +54,7 @@ export const useBreakpoint = () => {
55
54
}
56
55
57
56
const [ size , setSize ] = useState ( ( ) => resolveBreakpoint ( window . innerWidth ) ) ;
58
-
59
- const setBreakpoint = ( ) => {
60
- setSize ( resolveBreakpoint ( window . innerWidth ) ) ;
61
- } ;
57
+ const setBreakpoint = ( ) => setSize ( resolveBreakpoint ( window . innerWidth ) ) ;
62
58
63
59
useEffect ( ( ) => {
64
60
const calcInnerWidth = debounce ( setBreakpoint , 200 ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default function apply() {
36
36
< Navbar />
37
37
< div className = "center" style = { { height : `${ jumbotronHeightPx } px` } } >
38
38
< div
39
- className = "center"
39
+ className = "center p-4 "
40
40
style = { { flexDirection : 'column' , maxWidth : '800px' } }
41
41
>
42
42
< h1 className = "pg-heading" >
You can’t perform that action at this time.
0 commit comments