Skip to content

Commit 90fd880

Browse files
linting fix
1 parent 4d5159c commit 90fd880

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/Dashboard/Dashboard.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,31 @@ import { toast } from 'react-toastify';
2121

2222
function Dashboard() {
2323
const dispatch = useDispatch();
24-
24+
2525
// Use hooks instead of connect to access Redux state
2626
const authUser = useSelector(state => state.auth.user);
2727
const displayUserProfile = useSelector(state => state.userProfile);
2828
const darkMode = useSelector(state => state.theme.darkMode);
2929

3030
// Get userId from URL params
3131
const { userId: urlUserId } = useParams();
32-
32+
3333
// Component state
3434
const [popup, setPopup] = useState(false);
3535
const [filteredUserTeamIds, setFilteredUserTeamIds] = useState([]);
3636
const [summaryBarData, setSummaryBarData] = useState(null);
37-
37+
3838
// Memoize this function to avoid recreating it on every render
3939
const checkSessionStorage = useCallback(() => {
4040
return JSON.parse(sessionStorage.getItem('viewingUser')) ?? false;
4141
}, []);
42-
42+
4343
// State for viewing user
4444
const [viewingUser, setViewingUser] = useState(checkSessionStorage());
4545
const [displayUserId, setDisplayUserId] = useState(
46-
urlUserId || viewingUser?.userId || authUser.userid
46+
urlUserId || viewingUser?.userId || authUser.userid,
4747
);
48-
48+
4949
const isNotAllowedToEdit = cantUpdateDevAdminDetails(viewingUser?.email, authUser.email);
5050

5151
// Toggle popup with memoization to prevent recreation
@@ -77,7 +77,7 @@ function Dashboard() {
7777
}, [authUser.userid, checkSessionStorage]);
7878

7979
// Memoize summary bar update handler
80-
const handleSummaryBarDataUpdate = useCallback((data) => {
80+
const handleSummaryBarDataUpdate = useCallback(data => {
8181
setSummaryBarData(data);
8282
}, []);
8383

0 commit comments

Comments
 (0)