Skip to content

Commit

Permalink
Remove outdated event data and refactor imports in route file
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandsalis committed Jan 23, 2025
1 parent 6ba5e82 commit dcd0f28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 169 deletions.
164 changes: 0 additions & 164 deletions app/data/dates.ts

This file was deleted.

7 changes: 2 additions & 5 deletions app/routes/_index/route.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Link, useLoaderData } from 'react-router'
import { getImageDimensions } from '@sanity/asset-utils'
import {
ArrowRight,
Expand All @@ -9,7 +8,7 @@ import {
QuoteIcon,
} from 'lucide-react'
import React from 'react'
import slug from 'slug'
import { Link, useLoaderData } from 'react-router'
import { LogoSymbol } from '#app/components/brand.tsx'
import { SectionHeading } from '#app/components/section-heading.tsx'
import { Button } from '#app/components/ui/button.js'
Expand All @@ -20,19 +19,17 @@ import {
CarouselNext,
CarouselPrevious,
} from '#app/components/ui/carousel.tsx'
import { events as eventsData } from '#app/data/dates.ts'
import { urlFor } from '#app/sanity/instance.ts'
import { loadQuery } from '#app/sanity/loader.server.ts'
import { EventSchema } from '#app/sanity/schema/event.tsx'
import { alphabetMap } from '#app/sanity/schema/year.js'
import { type HomeQueryResult } from '#app/sanity/types.ts'
import { cn } from '#app/utils/misc.js'
import { pillars } from '../ueber-uns+/philosophie+/_layout.tsx'
import { homeQuery } from './query.ts'
import { EventSchema } from '#app/sanity/schema/event.tsx'

export async function loader() {
const queryResult = await loadQuery<HomeQueryResult>(homeQuery)
console.log(queryResult)

return {
query: homeQuery,
Expand Down

0 comments on commit dcd0f28

Please sign in to comment.