diff --git a/frontend/app/[vertical]/page.tsx b/frontend/app/[vertical]/page.tsx index 3d712e9..9d6ce02 100644 --- a/frontend/app/[vertical]/page.tsx +++ b/frontend/app/[vertical]/page.tsx @@ -1,5 +1,5 @@ import { notFound } from "next/navigation" -import { VERTICALS } from "@/contexts/vertical-context" +import { VERTICALS } from "@/config/verticals" interface Props { params: { vertical: string } diff --git a/frontend/app/[vertical]/shows/page.tsx b/frontend/app/[vertical]/shows/page.tsx index 749207e..c05105b 100644 --- a/frontend/app/[vertical]/shows/page.tsx +++ b/frontend/app/[vertical]/shows/page.tsx @@ -1,4 +1,4 @@ -import { VERTICALS } from "@/contexts/vertical-context" +import { VERTICALS } from "@/config/verticals" import { notFound } from "next/navigation" import { getApiUrl } from "@/lib/api-config" diff --git a/frontend/app/[vertical]/songs/page.tsx b/frontend/app/[vertical]/songs/page.tsx index 791aebc..ad534af 100644 --- a/frontend/app/[vertical]/songs/page.tsx +++ b/frontend/app/[vertical]/songs/page.tsx @@ -1,4 +1,4 @@ -import { VERTICALS } from "@/contexts/vertical-context" +import { VERTICALS } from "@/config/verticals" import { notFound } from "next/navigation" import { getApiUrl } from "@/lib/api-config" diff --git a/frontend/app/[vertical]/venues/page.tsx b/frontend/app/[vertical]/venues/page.tsx index 9997ec6..f37e0e0 100644 --- a/frontend/app/[vertical]/venues/page.tsx +++ b/frontend/app/[vertical]/venues/page.tsx @@ -1,4 +1,4 @@ -import { VERTICALS } from "@/contexts/vertical-context" +import { VERTICALS } from "@/config/verticals" import { notFound } from "next/navigation" import { getApiUrl } from "@/lib/api-config" diff --git a/frontend/components/layout/band-selector.tsx b/frontend/components/layout/band-selector.tsx index b2a5ed5..e117016 100644 --- a/frontend/components/layout/band-selector.tsx +++ b/frontend/components/layout/band-selector.tsx @@ -16,7 +16,8 @@ import { SheetTitle, SheetTrigger, } from "@/components/ui/sheet" -import { useVertical, VERTICALS, VerticalSlug } from "@/contexts/vertical-context" +import { useVertical } from "@/contexts/vertical-context" +import { VERTICALS, VerticalSlug } from "@/config/verticals" import { useState } from "react" export function BandSelector() { diff --git a/frontend/config/verticals.ts b/frontend/config/verticals.ts new file mode 100644 index 0000000..a93d641 --- /dev/null +++ b/frontend/config/verticals.ts @@ -0,0 +1,14 @@ +export const VERTICALS = [ + { slug: "goose", name: "Goose" }, + { slug: "phish", name: "Phish" }, + { slug: "grateful-dead", name: "Grateful Dead" }, + { slug: "dead-and-company", name: "Dead & Company" }, + { slug: "billy-strings", name: "Billy Strings" }, +] as const + +export type VerticalSlug = typeof VERTICALS[number]["slug"] + +export interface Vertical { + slug: VerticalSlug + name: string +} diff --git a/frontend/contexts/vertical-context.tsx b/frontend/contexts/vertical-context.tsx index fd6d15b..f4a4e6b 100644 --- a/frontend/contexts/vertical-context.tsx +++ b/frontend/contexts/vertical-context.tsx @@ -2,22 +2,7 @@ import { createContext, useContext, useState, useEffect, ReactNode } from "react" import { usePathname } from "next/navigation" - -// Supported verticals (bands) -export const VERTICALS = [ - { slug: "goose", name: "Goose" }, - { slug: "phish", name: "Phish" }, - { slug: "grateful-dead", name: "Grateful Dead" }, - { slug: "dead-and-company", name: "Dead & Company" }, - { slug: "billy-strings", name: "Billy Strings" }, -] as const - -export type VerticalSlug = typeof VERTICALS[number]["slug"] - -export interface Vertical { - slug: VerticalSlug - name: string -} +import { VERTICALS, Vertical, VerticalSlug } from "@/config/verticals" interface VerticalContextType { current: Vertical