Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: double problem explorer issue (#1423)

Fahada9c578176055
diff --git a/apps/web/src/app/[locale]/challenge/[slug]/left-wrapper.tsx b/apps/web/src/app/[locale]/challenge/[slug]/left-wrapper.tsx
index 0d0282d9..9cce9910 100644
--- a/apps/web/src/app/[locale]/challenge/[slug]/left-wrapper.tsx
+++ b/apps/web/src/app/[locale]/challenge/[slug]/left-wrapper.tsx
@@ -14,7 +14,6 @@ import { AOT_CHALLENGES } from './aot-slugs';
import type { ChallengeRouteData } from './getChallengeRouteData';
import { useTrackNavigationVisiblity } from './use-track-visibility.hook';
import { ProblemExplorerTrackNav } from '~/components/Navigation/problem-explorer-track-nav';
-import { useProblemExplorerContext } from '~/app/problem-explorer.hooks';
type Tab = 'description' | 'solutions' | 'submissions';
interface Props {
@@ -29,7 +28,6 @@ export function LeftWrapper({ children, challenge, track, expandPanel, isDesktop
const pathname = usePathname();
const router = useRouter();
const [isCollapsed, setIsCollapsed] = useState(false);
- const { isExplorerDisabled } = useProblemExplorerContext();
const featureFlags = useContext(FeatureFlagContext);
@@ -125,12 +123,6 @@ export function LeftWrapper({ children, challenge, track, expandPanel, isDesktop
className={cn('border-b border-zinc-300 p-1 dark:border-zinc-700')}
/>
)}
- {Boolean(isTrackVisible && !isExplorerDisabled) && (
- <ProblemExplorerTrackNav
- isCollapsed={isCollapsed}
- className={cn('border-b border-zinc-300 p-1 dark:border-zinc-700')}
- />
- )}
<Tabs
ref={tabsRef}
className="flex h-full w-full flex-col overflow-hidden"