From 28a7a7e6686a9ded0cae7768b6b06b20bec8bc92 Mon Sep 17 00:00:00 2001 From: 39bytes Date: Mon, 27 May 2024 00:14:07 -0400 Subject: [PATCH] fix --- src/components/astro/MobileMenu.astro | 1 - src/components/astro/NavSocial.astro | 3 +-- src/components/preact/EventInfo.tsx | 2 +- src/components/preact/Events.tsx | 2 +- src/pages/index.astro | 1 - 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/astro/MobileMenu.astro b/src/components/astro/MobileMenu.astro index 05307dc..baf579d 100644 --- a/src/components/astro/MobileMenu.astro +++ b/src/components/astro/MobileMenu.astro @@ -3,7 +3,6 @@ import { Menu } from 'lucide-preact'; import NavLink from './NavLink.astro'; import NavSocial from './NavSocial.astro'; import Separator from './Separator.astro'; -import { Icon } from 'astro-icon/components'; import Logo from './Logo.astro'; --- diff --git a/src/components/astro/NavSocial.astro b/src/components/astro/NavSocial.astro index 66d0d1f..bd43b37 100644 --- a/src/components/astro/NavSocial.astro +++ b/src/components/astro/NavSocial.astro @@ -4,12 +4,11 @@ import { Icon } from 'astro-icon/components'; interface Props { name: string; href: string; - size?: number; class?: string; iconClass?: string; } -const { name, size, href, class: className, iconClass } = Astro.props; +const { name, href, class: className, iconClass } = Astro.props; --- { ); useEffect(() => { setEvent(undefined); - fetch('http://localhost:8000/events/' + id) + fetch(`${import.meta.env.PUBLIC_API_URL}/events/${id}`) .then((res) => res.json()) .then(setEvent) .catch((e) => { diff --git a/src/components/preact/Events.tsx b/src/components/preact/Events.tsx index ebd398f..91a5ef2 100644 --- a/src/components/preact/Events.tsx +++ b/src/components/preact/Events.tsx @@ -30,7 +30,7 @@ const Events = () => { ); useEffect(() => { - fetch('http://localhost:8000/events') + fetch(`${import.meta.env.PUBLIC_API_URL}/events`) .then((res) => res.json()) .then(setEventData) .catch((e) => { diff --git a/src/pages/index.astro b/src/pages/index.astro index 617add2..d1d54a7 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,7 +4,6 @@ import MembershipCard from '@/components/astro/MembershipCard.astro'; import ExecCarousel from '@/components/preact/ExecCarousel'; import GetInvolvedCard from '@/components/astro/GetInvolvedCard.astro'; import ButtonLink from '@/components/astro/ButtonLink.astro'; -import ContactForm from '@/components/astro/ContactForm.astro'; import { Icon } from 'astro-icon/components'; const EXECS = [