Skip to content

Commit

Permalink
fix scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant committed Jan 29, 2024
1 parent c189762 commit 18d1b4b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 53 deletions.
100 changes: 48 additions & 52 deletions apps/website/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
@@ -1,88 +1,84 @@
// This file is auto-generated by TanStack Router

import { createFileRoute } from "@tanstack/react-router";
import { createFileRoute } from '@tanstack/react-router'

// Import Routes

import { Route as rootRoute } from "./routes/__root";
import { Route as rootRoute } from './routes/__root'

// Create Virtual Routes

const IndexLazyImport = createFileRoute("/")();
const TermsOfServiceIndexLazyImport = createFileRoute("/terms-of-service/")();
const PrivacyPolicyIndexLazyImport = createFileRoute("/privacy-policy/")();
const PricingIndexLazyImport = createFileRoute("/pricing/")();
const GdprIndexLazyImport = createFileRoute("/gdpr/")();
const ContactIndexLazyImport = createFileRoute("/contact/")();
const IndexLazyImport = createFileRoute('/')()
const TermsOfServiceIndexLazyImport = createFileRoute('/terms-of-service/')()
const PrivacyPolicyIndexLazyImport = createFileRoute('/privacy-policy/')()
const PricingIndexLazyImport = createFileRoute('/pricing/')()
const GdprIndexLazyImport = createFileRoute('/gdpr/')()
const ContactIndexLazyImport = createFileRoute('/contact/')()

// Create/Update Routes

const IndexLazyRoute = IndexLazyImport.update({
path: "/",
path: '/',
getParentRoute: () => rootRoute,
} as any).lazy(() => import("./routes/index.lazy").then((d) => d.Route));
} as any).lazy(() => import('./routes/index.lazy').then((d) => d.Route))

const TermsOfServiceIndexLazyRoute = TermsOfServiceIndexLazyImport.update({
path: "/terms-of-service/",
path: '/terms-of-service/',
getParentRoute: () => rootRoute,
} as any).lazy(() =>
import("./routes/terms-of-service/index.lazy").then((d) => d.Route),
);
import('./routes/terms-of-service/index.lazy').then((d) => d.Route),
)

const PrivacyPolicyIndexLazyRoute = PrivacyPolicyIndexLazyImport.update({
path: "/privacy-policy/",
path: '/privacy-policy/',
getParentRoute: () => rootRoute,
} as any).lazy(() =>
import("./routes/privacy-policy/index.lazy").then((d) => d.Route),
);
import('./routes/privacy-policy/index.lazy').then((d) => d.Route),
)

const PricingIndexLazyRoute = PricingIndexLazyImport.update({
path: "/pricing/",
path: '/pricing/',
getParentRoute: () => rootRoute,
} as any).lazy(() =>
import("./routes/pricing/index.lazy").then((d) => d.Route),
);
} as any).lazy(() => import('./routes/pricing/index.lazy').then((d) => d.Route))

const GdprIndexLazyRoute = GdprIndexLazyImport.update({
path: "/gdpr/",
path: '/gdpr/',
getParentRoute: () => rootRoute,
} as any).lazy(() => import("./routes/gdpr/index.lazy").then((d) => d.Route));
} as any).lazy(() => import('./routes/gdpr/index.lazy').then((d) => d.Route))

const ContactIndexLazyRoute = ContactIndexLazyImport.update({
path: "/contact/",
path: '/contact/',
getParentRoute: () => rootRoute,
} as any).lazy(() =>
import("./routes/contact/index.lazy").then((d) => d.Route),
);
} as any).lazy(() => import('./routes/contact/index.lazy').then((d) => d.Route))

// Populate the FileRoutesByPath interface

declare module "@tanstack/react-router" {
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
"/": {
preLoaderRoute: typeof IndexLazyImport;
parentRoute: typeof rootRoute;
};
"/contact/": {
preLoaderRoute: typeof ContactIndexLazyImport;
parentRoute: typeof rootRoute;
};
"/gdpr/": {
preLoaderRoute: typeof GdprIndexLazyImport;
parentRoute: typeof rootRoute;
};
"/pricing/": {
preLoaderRoute: typeof PricingIndexLazyImport;
parentRoute: typeof rootRoute;
};
"/privacy-policy/": {
preLoaderRoute: typeof PrivacyPolicyIndexLazyImport;
parentRoute: typeof rootRoute;
};
"/terms-of-service/": {
preLoaderRoute: typeof TermsOfServiceIndexLazyImport;
parentRoute: typeof rootRoute;
};
'/': {
preLoaderRoute: typeof IndexLazyImport
parentRoute: typeof rootRoute
}
'/contact/': {
preLoaderRoute: typeof ContactIndexLazyImport
parentRoute: typeof rootRoute
}
'/gdpr/': {
preLoaderRoute: typeof GdprIndexLazyImport
parentRoute: typeof rootRoute
}
'/pricing/': {
preLoaderRoute: typeof PricingIndexLazyImport
parentRoute: typeof rootRoute
}
'/privacy-policy/': {
preLoaderRoute: typeof PrivacyPolicyIndexLazyImport
parentRoute: typeof rootRoute
}
'/terms-of-service/': {
preLoaderRoute: typeof TermsOfServiceIndexLazyImport
parentRoute: typeof rootRoute
}
}
}

Expand All @@ -95,4 +91,4 @@ export const routeTree = rootRoute.addChildren([
PricingIndexLazyRoute,
PrivacyPolicyIndexLazyRoute,
TermsOfServiceIndexLazyRoute,
]);
])
7 changes: 6 additions & 1 deletion apps/website/src/routes/__root.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { createRootRoute, Outlet } from "@tanstack/react-router";
import {
createRootRoute,
Outlet,
ScrollRestoration,
} from "@tanstack/react-router";
import Navbar from "../components/Navbar";
import Spacer from "../components/Spacer";
import Footer from "../components/Footer";
Expand All @@ -14,6 +18,7 @@ function Index() {

<Spacer />

<ScrollRestoration />
<Outlet />

<Spacer />
Expand Down

0 comments on commit 18d1b4b

Please sign in to comment.