Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Aug 6, 2024
1 parent 2e4301c commit c58d592
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/app/(static)/events-news/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ const INITIAL_NEWS_PAGE = 1;
export default async function EventsNews() {
const queryClient = new QueryClient();

console.log({
APP_HOSTNAME,
final: `${APP_HOSTNAME}/events`,
});

await queryClient.prefetchQuery({
queryKey: queryKeys.events.past.queryKey,
queryFn: async () => {
Expand Down
6 changes: 6 additions & 0 deletions src/containers/events-news/events/upcoming-events/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ import {
DialogTitle,
DialogTrigger,
} from '@/components/ui/dialog';
import APP_HOSTNAME from '@/lib';
import formatDate from '@/utils/date';

export default function UpcomingEvents() {
const { data } = useQuery<Event[]>({
queryKey: queryKeys.events.upcoming.queryKey,
});

console.log({
APP_HOSTNAME,
final: `${APP_HOSTNAME}/events`,
});

return (
<ul className="">
{data?.map(({ name, image, location, date, description }) => (
Expand Down

0 comments on commit c58d592

Please sign in to comment.