Skip to content

Commit

Permalink
fix(frontend): remove unused theme variable in DashboardHeader component
Browse files Browse the repository at this point in the history
  • Loading branch information
logonoff committed Nov 7, 2024
1 parent 489c057 commit a4feac1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/DashboardHeader/DashboardHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { KeyboardArrowDown, Logout } from '@mui/icons-material';

import { Box, Button, Menu, MenuItem, Skeleton, Theme, Typography, useTheme } from '@mui/material';
import { Box, Button, Menu, MenuItem, Skeleton, Typography, useTheme } from '@mui/material';
import React, { SyntheticEvent, useContext } from 'react';
import { InitialsAvatar, Link } from '..';
import { UserContext } from '../../contexts/UserContext';
Expand Down Expand Up @@ -57,7 +57,7 @@ const LeftHeader = ({
* Right side of the header containing the user's initials and a menu to logout
* @returns the right side of the header
*/
const RightHeader = ({ userInfo, theme }: {
const RightHeader = ({ userInfo }: {
/** to be passed by the UserContext */
userInfo: User;
}) => {
Expand Down Expand Up @@ -134,7 +134,6 @@ export const DashboardHeader = ({
pending_requests: BookingRequest[];
}) => {
const { userInfo } = useContext(UserContext);
const theme = useTheme();

return (
<Box
Expand Down

0 comments on commit a4feac1

Please sign in to comment.