@@ -17,9 +17,9 @@ import { GridMenuIcon } from '@mui/x-data-grid';
1717import { useCurrentUser } from '../../hooks/users.hooks' ;
1818import { useEffect , useState } from 'react' ;
1919
20- const textColor = 'white' ;
21- const background = '#ef4345' ;
22- const mobileWidthThreshold = 550 ;
20+ const TEXT_COLOR = 'white' ;
21+ const BACKGROUND = '#ef4345' ;
22+ const MOBILE_WIDTH_THRESHOLD = 550 ;
2323
2424interface NavTopBarProps extends LayoutProps {
2525 handleDrawerOpen : ( ) => void ;
@@ -35,7 +35,7 @@ const NavTopBar: React.FC<NavTopBarProps> = ({ open, handleDrawerOpen }) => {
3535 const user = useCurrentUser ( ) ;
3636 return (
3737 < NERAppBar position = "fixed" open = { open } >
38- < Toolbar disableGutters sx = { { height : 68 , px : 1 , background , color : textColor } } >
38+ < Toolbar disableGutters sx = { { height : 68 , px : 1 , BACKGROUND , color : TEXT_COLOR } } >
3939 < IconButton
4040 color = "inherit"
4141 aria-label = "open drawer"
@@ -57,16 +57,16 @@ const NavTopBar: React.FC<NavTopBarProps> = ({ open, handleDrawerOpen }) => {
5757 alt = "Northeastern Electric Racing Logo"
5858 src = "/NER-Logo-App-Icon.png"
5959 />
60- < Typography variant = "h4" fontSize = { 30 } component = "div" sx = { { flexGrow : 1 , paddingLeft : 2 , color : textColor } } >
61- { width > mobileWidthThreshold ? 'FinishLine by NER' : 'FinishLine' }
60+ < Typography variant = "h4" fontSize = { 30 } component = "div" sx = { { flexGrow : 1 , paddingLeft : 2 , color : TEXT_COLOR } } >
61+ { width > MOBILE_WIDTH_THRESHOLD ? 'FinishLine by NER' : 'FinishLine' }
6262 </ Typography >
6363 </ Box >
6464 </ Link >
6565 </ Box >
6666 < Typography
6767 variant = "body1"
6868 sx = { {
69- color : textColor ,
69+ color : TEXT_COLOR ,
7070 '@media (max-width: 600px)' : {
7171 display : 'none' // Hide the text on screens with width less than 600 pixels
7272 }
0 commit comments