fix(toast-inner): remove unnecessary router import
This commit is contained in:
parent
7f419afe47
commit
d97d2c84d2
2 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue