Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions apps/web/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { Route as JoinWaitlistRouteImport } from './routes/join-waitlist'
import { Route as GithubRouteImport } from './routes/github'
import { Route as FoundersRouteImport } from './routes/founders'
import { Route as DiscordRouteImport } from './routes/discord'
import { Route as ContactRouteImport } from './routes/contact'
import { Route as CalRouteImport } from './routes/cal'
import { Route as AuthRouteImport } from './routes/auth'
import { Route as ViewRouteRouteImport } from './routes/_view/route'
Expand Down Expand Up @@ -104,6 +105,11 @@ const DiscordRoute = DiscordRouteImport.update({
path: '/discord',
getParentRoute: () => rootRouteImport,
} as any)
const ContactRoute = ContactRouteImport.update({
id: '/contact',
path: '/contact',
getParentRoute: () => rootRouteImport,
} as any)
const CalRoute = CalRouteImport.update({
id: '/cal',
path: '/cal',
Expand Down Expand Up @@ -371,6 +377,7 @@ const ViewAppAccountRoute = ViewAppAccountRouteImport.update({
export interface FileRoutesByFullPath {
'/auth': typeof AuthRoute
'/cal': typeof CalRoute
'/contact': typeof ContactRoute
'/discord': typeof DiscordRoute
'/founders': typeof FoundersRoute
'/github': typeof GithubRoute
Expand Down Expand Up @@ -431,6 +438,7 @@ export interface FileRoutesByFullPath {
export interface FileRoutesByTo {
'/auth': typeof AuthRoute
'/cal': typeof CalRoute
'/contact': typeof ContactRoute
'/discord': typeof DiscordRoute
'/founders': typeof FoundersRoute
'/github': typeof GithubRoute
Expand Down Expand Up @@ -491,6 +499,7 @@ export interface FileRoutesById {
'/_view': typeof ViewRouteRouteWithChildren
'/auth': typeof AuthRoute
'/cal': typeof CalRoute
'/contact': typeof ContactRoute
'/discord': typeof DiscordRoute
'/founders': typeof FoundersRoute
'/github': typeof GithubRoute
Expand Down Expand Up @@ -553,6 +562,7 @@ export interface FileRouteTypes {
fullPaths:
| '/auth'
| '/cal'
| '/contact'
| '/discord'
| '/founders'
| '/github'
Expand Down Expand Up @@ -613,6 +623,7 @@ export interface FileRouteTypes {
to:
| '/auth'
| '/cal'
| '/contact'
| '/discord'
| '/founders'
| '/github'
Expand Down Expand Up @@ -672,6 +683,7 @@ export interface FileRouteTypes {
| '/_view'
| '/auth'
| '/cal'
| '/contact'
| '/discord'
| '/founders'
| '/github'
Expand Down Expand Up @@ -734,6 +746,7 @@ export interface RootRouteChildren {
ViewRouteRoute: typeof ViewRouteRouteWithChildren
AuthRoute: typeof AuthRoute
CalRoute: typeof CalRoute
ContactRoute: typeof ContactRoute
DiscordRoute: typeof DiscordRoute
FoundersRoute: typeof FoundersRoute
GithubRoute: typeof GithubRoute
Expand Down Expand Up @@ -797,6 +810,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof DiscordRouteImport
parentRoute: typeof rootRouteImport
}
'/contact': {
id: '/contact'
path: '/contact'
fullPath: '/contact'
preLoaderRoute: typeof ContactRouteImport
parentRoute: typeof rootRouteImport
}
'/cal': {
id: '/cal'
path: '/cal'
Expand Down Expand Up @@ -1290,6 +1310,7 @@ const rootRouteChildren: RootRouteChildren = {
ViewRouteRoute: ViewRouteRouteWithChildren,
AuthRoute: AuthRoute,
CalRoute: CalRoute,
ContactRoute: ContactRoute,
DiscordRoute: DiscordRoute,
FoundersRoute: FoundersRoute,
GithubRoute: GithubRoute,
Expand Down
9 changes: 9 additions & 0 deletions apps/web/src/routes/contact.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { createFileRoute, redirect } from "@tanstack/react-router";

export const Route = createFileRoute("/contact")({
beforeLoad: () => {
throw redirect({
href: "mailto:support@hyprnote.com",
});
},
});
Loading