Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

630 B
Raw Blame
import { SettingsIndexPage } from '@spree/dashboard-core'
import { createFileRoute } from '@tanstack/react-router'

export const Route = createFileRoute('/_authenticated/$sellerId/settings/')({
  component: SettingsIndexRoute,
})

/**
 * The same landing page the operator's dashboard renders: a card grid of every
 * settings area this member can reach. On a narrow viewport the settings rail
 * is hidden, so this grid is the only way into the area — it must not redirect
 * to a specific page.
 */
function SettingsIndexRoute() {
  const { sellerId } = Route.useParams()

  return <SettingsIndexPage tenantId={sellerId} />
}