mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-02 20:32:39 +02:00
Merge pull request #957 from LikiosSedo/fix/remove-unused-sidebar-header-imports
fix: remove unused `useRouter` and `useParams` in SidebarHeader
This commit is contained in:
commit
1252d8e1fa
1 changed files with 0 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { ChevronsUpDown, Settings, UserPen } from "lucide-react";
|
import { ChevronsUpDown, Settings, UserPen } from "lucide-react";
|
||||||
import { useParams, useRouter } from "next/navigation";
|
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
|
|
@ -29,9 +28,6 @@ export function SidebarHeader({
|
||||||
className,
|
className,
|
||||||
}: SidebarHeaderProps) {
|
}: SidebarHeaderProps) {
|
||||||
const t = useTranslations("sidebar");
|
const t = useTranslations("sidebar");
|
||||||
const router = useRouter();
|
|
||||||
const params = useParams();
|
|
||||||
const searchSpaceId = params.search_space_id as string;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn("flex min-w-0 flex-1 items-center", className)}>
|
<div className={cn("flex min-w-0 flex-1 items-center", className)}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue