refactor: simplify KnowledgeFilterPanel by removing unused props and layout context import

This commit is contained in:
Deon Sanchez 2025-10-06 14:46:39 -06:00
parent 2b9bbd7d09
commit 4d21d6afbb
2 changed files with 1 additions and 14 deletions

View file

@ -25,7 +25,6 @@ import {
FilterIconPopover,
IconKey,
} from "@/components/filter-icon-popover";
import { useLayout } from "@/contexts/layout-context";
interface FacetBucket {
key: string;
@ -49,15 +48,7 @@ export const filterAccentClasses: Record<FilterColor, string> = {
red: "bg-accent-red text-accent-red-foreground",
};
interface KnowledgeFilterPanelProps {
totalTopOffset: number;
headerHeight: number;
}
export function KnowledgeFilterPanel({
totalTopOffset,
headerHeight,
}: KnowledgeFilterPanelProps) {
export function KnowledgeFilterPanel() {
const {
queryOverride,
selectedFilter,

View file

@ -63,10 +63,6 @@ export function LayoutWrapper({ children }: { children: React.ReactNode }) {
const smallWidthPaths = ["/settings", "/settings/connector/new"];
const isSmallWidthPath = smallWidthPaths.includes(pathname);
// List of paths that should not show navigation
const authPaths = ["/login", "/auth/callback", "/onboarding"];
const isAuthPage = authPaths.includes(pathname);
// Calculate active tasks for the bell icon
const activeTasks = tasks.filter(
task =>