Skip to content

Commit

Permalink
More errors
Browse files Browse the repository at this point in the history
  • Loading branch information
édouard wautier authored and édouard wautier committed Apr 4, 2024
1 parent b7e3877 commit 59f5a07
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 6 additions & 1 deletion front/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,12 @@ export default function Home({
case "product":
return <ProductPage getReturnToUrl={getReturnToUrl} />;
case "pricing":
return <PricingPage />;
return (
<PricingPage
getReturnToUrl={getReturnToUrl}
setShowContactUsDrawer={setShowContactUsDrawer}
/>
);
case "security":
return <SecurityPage />;
case "for_customer":
Expand Down
13 changes: 12 additions & 1 deletion front/pages/website/PricingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
import { Button, RocketIcon } from "@dust-tt/sparkle";
import { useRouter } from "next/router";
import type { ParsedUrlQuery } from "querystring";
import React from "react";

import { Grid, H2 } from "@app/components/home/contentComponents";
import { PricePlans } from "@app/components/PlansTables";

export function PricingPage() {
interface PricingPageProps {
getReturnToUrl: (routerQuery: ParsedUrlQuery) => string;
setShowContactUsDrawer: (show: boolean) => void;
}

export function PricingPage({
getReturnToUrl,
setShowContactUsDrawer,
}: PricingPageProps) {
const router = useRouter();
return (
<>
<Grid>
Expand Down

0 comments on commit 59f5a07

Please sign in to comment.