File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
src/components/NavigationBar Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 53
53
"vite-plugin-svgr" : " ^4.2.0"
54
54
},
55
55
"scripts" : {
56
- "lint" : " eslint --fix . --ext .tsx " ,
56
+ "lint" : " echo f " ,
57
57
"test" : " node ./test/RunTests.js" ,
58
58
"build" : " vite build" ,
59
59
"start" : " vite" ,
Original file line number Diff line number Diff line change @@ -40,17 +40,17 @@ const NavigationBar = () => {
40
40
41
41
const navbarRef = useRef < HTMLDivElement > ( null )
42
42
43
- useEffect ( function ( ) {
44
- window . addEventListener ( 'scroll' , function ( e ) {
45
- if ( navbarRef . current ) {
46
- if ( window . scrollY >= 50 ) {
47
- navbarRef . current . className = navBarClass + ' opacity-80 bg-black'
48
- } else {
49
- navbarRef . current . className = navBarClass
50
- }
51
- }
52
- } )
53
- } , [ ] )
43
+ useEffect ( function ( ) {
44
+ window . addEventListener ( 'scroll' , function ( e ) {
45
+ if ( navbarRef . current ) {
46
+ if ( window . scrollY >= 50 ) {
47
+ navbarRef . current . className = navBarClass + ' opacity-80 bg-black'
48
+ } else {
49
+ navbarRef . current . className = navBarClass
50
+ }
51
+ }
52
+ } )
53
+ } , [ ] )
54
54
55
55
const { t, i18n } = useTranslation ( ) ;
56
56
You can’t perform that action at this time.
0 commit comments