Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
39bytes committed May 27, 2024
1 parent 5a9a4ac commit 28a7a7e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/components/astro/MobileMenu.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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';
---

Expand Down
3 changes: 1 addition & 2 deletions src/components/astro/NavSocial.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
---

<a
Expand Down
2 changes: 1 addition & 1 deletion src/components/preact/EventInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const EventInfo = () => {
);
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) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/preact/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 28a7a7e

Please sign in to comment.