fix(toast-inner): remove unnecessary router import

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

View file

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

View file

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