diff --git a/app/Home.tsx b/app/Home.tsx index f3e9807..8ce576a 100644 --- a/app/Home.tsx +++ b/app/Home.tsx @@ -1,23 +1,33 @@ +'use client'; +import { useEffect, useState } from 'react'; import Header from '../components/custom/header'; import Footer from '../components/custom/footer'; import Test from '../components/scripts/Test'; import MetaMask from '../components/scripts/MetaMask'; export default function Home() { + const [isClient, setIsClient] = useState(false); + + useEffect(() => { + setIsClient(true); + }, []); + return ( <>
{/* Video Background */} - + {isClient && ( + + )} {/* Dark Overlay for Enhanced Readability */}
@@ -54,19 +64,8 @@ export default function Home() {
+
-
-

Featured Events

-

No events available at the moment.

-
-
-

Upcoming Events

-
    -
  • Event 1 - Date
  • -
  • Event 2 - Date
  • -
  • Event 3 - Date
  • -
-
@@ -75,6 +74,6 @@ export default function Home() {
- + ); } diff --git a/app/page.tsx b/app/page.tsx index 5146df6..03b69a9 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,4 +1,3 @@ -import EventDescription from '@/components/custom/EventDescription'; import Home from './Home'; export default function Page() { diff --git a/components/Profile.tsx b/components/Profile.tsx index 13b553f..a554df0 100644 --- a/components/Profile.tsx +++ b/components/Profile.tsx @@ -4,20 +4,12 @@ import { Button } from '@/components/ui/button'; import { Card, CardContent, - CardDescription, CardFooter, CardHeader, CardTitle, } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from '@/components/ui/select'; import { motion } from 'framer-motion'; // Dark theme and animation setup diff --git a/components/custom/EventDescription.tsx b/components/custom/EventDescription.tsx index 653f332..4b3e914 100644 --- a/components/custom/EventDescription.tsx +++ b/components/custom/EventDescription.tsx @@ -10,7 +10,7 @@ import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import { Separator } from '@/components/ui/separator'; import ImageCarousel from './ImageCarousel'; -import BuyTicket from './BuyTicket'; +// import BuyTicket from './BuyTicket'; import TicketButton from './TicketButton'; const EventDescription = () => { diff --git a/components/custom/TicketButton.tsx b/components/custom/TicketButton.tsx index 8934c2a..0d42a1f 100644 --- a/components/custom/TicketButton.tsx +++ b/components/custom/TicketButton.tsx @@ -1,3 +1,4 @@ +'use client'; import React, { useState } from 'react'; import { Button } from '../ui/button'; // Adjust import path to where your shadcn Button component is located @@ -20,7 +21,9 @@ const NumberPicker: React.FC = ({ if (count < max) { const newCount = count + 1; setCount(newCount); - onChange && onChange(newCount); + if (onChange) { + onChange(newCount); + } } }; @@ -28,7 +31,9 @@ const NumberPicker: React.FC = ({ if (count > min) { const newCount = count - 1; setCount(newCount); - onChange && onChange(newCount); + if (onChange) { + onChange(newCount); + } } }; diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index e69de29..0000000