fix(toast-inner): remove unnecessary router import

This commit is contained in:
micha 2025-06-19 12:27:39 +02:00
parent d9d29a26af
commit 98f2395ff2
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
'use client';
import React from 'react';
import { useRouter, usePathname } from 'next/navigation';
import { usePathname } from 'next/navigation';
import Logo from '@/components/misc/logo';
import { ThemePicker } from '@/components/misc/theme-picker';
import { Card, CardContent, CardHeader } from '@/components/ui/card';
@ -11,7 +11,6 @@ import { useGetApiUserMe } from '@/generated/api/user/user';
import { RedirectButton } from '@/components/buttons/redirect-button';
export default function ShowEvent() {
const router = useRouter();
const pathname = usePathname();
// Extract eventId from URL like /event/[eventId]

View file

@ -24,7 +24,7 @@ import { Button } from '@/components/ui/button';
/>
),
{
duration: 5000,
},
@ -106,6 +106,7 @@ export const ToastInner: React.FC<ToastInnerProps> = ({
const Icon = Icons[iconKey] as React.ComponentType<Icons.LucideProps>;
return (
// TODO: optimize Toaster for mobile
<div className={`relative w-120 rounded p-4 ${bgColor} select-none`}>
{/* Close Button */}
<button