chore: lint
This commit is contained in:
@@ -119,7 +119,7 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
const status = error.response?.status;
|
const status = error.response?.status;
|
||||||
let errorKey = 'unknown';
|
let errorKey = 'unknown';
|
||||||
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 401:
|
case 401:
|
||||||
errorKey = 'unauthorized';
|
errorKey = 'unauthorized';
|
||||||
@@ -132,7 +132,7 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
errorKey = 'network';
|
errorKey = 'network';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
notify(
|
notify(
|
||||||
'error',
|
'error',
|
||||||
t(`navbar.notifications.errors.logout.${errorKey}`, {
|
t(`navbar.notifications.errors.logout.${errorKey}`, {
|
||||||
@@ -164,8 +164,8 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
sx={{
|
sx={{
|
||||||
color: darkMode ? '#ffffff' : '#0000008A',
|
color: darkMode ? '#ffffff' : '#0000008A',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
background: 'inherit'
|
background: 'inherit'
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{darkMode ? <LightMode /> : <DarkMode />}
|
{darkMode ? <LightMode /> : <DarkMode />}
|
||||||
@@ -257,7 +257,7 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
padding: '8px',
|
padding: '8px',
|
||||||
marginRight: '20px',
|
marginRight: '20px',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
background: 'inherit'
|
background: 'inherit'
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
<Update sx={{ marginRight: '5px' }} />
|
<Update sx={{ marginRight: '5px' }} />
|
||||||
@@ -338,7 +338,7 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
docker-compose down
|
docker-compose down
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
# Remove existing backend and frontend images
|
# Remove existing backend and frontend images
|
||||||
<br />
|
<br />
|
||||||
docker rmi getmaxun/maxun-frontend:latest getmaxun/maxun-backend:latest
|
docker rmi getmaxun/maxun-frontend:latest getmaxun/maxun-backend:latest
|
||||||
<br />
|
<br />
|
||||||
@@ -373,7 +373,7 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
padding: '8px',
|
padding: '8px',
|
||||||
marginRight: '10px',
|
marginRight: '10px',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
background: 'inherit'
|
background: 'inherit'
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
<AccountCircle sx={{ marginRight: '5px' }} />
|
<AccountCircle sx={{ marginRight: '5px' }} />
|
||||||
|
|||||||
Reference in New Issue
Block a user