Skip to content

Commit

Permalink
minor fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshj01 committed Dec 23, 2024
1 parent b2e7b69 commit f77162c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/(main)/_components/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import { useNavbar } from '@/lib/Context/PSNavbarProvider';
import PencilSquareIcon from '@heroicons/react/24/solid/PencilSquareIcon';
import { useRouter } from 'next/navigation';
import React, { useCallback, useEffect, useState } from 'react';
Expand All @@ -23,12 +22,12 @@ const Sidebar: React.FC = () => {
const authService = new AuthService();
const logService = new LogService();
const [isFirstLogin, setIsFirstLogin] = useState<boolean>(false);
const { navbarTitle, setNavbarTitle } = useNavbar();
// const { navbarTitle, setNavbarTitle } = useNavbar();

const onLogClick = useCallback((log: Log | null) => {
if (log) {
setSelected(log);
setNavbarTitle(log.title || log.id || '');
// setNavbarTitle(log.title || log.id || '');
setId(log.id!);
router.push(`/logs/${log.id}`);
Analytics.logEvent('change_log', { id: log.id, action: 'click' });
Expand Down

0 comments on commit f77162c

Please sign in to comment.