Skip to content

Commit 74cec11

Browse files
authored
chore: remove frigade (#593)
1 parent 5f6b10f commit 74cec11

File tree

4 files changed

+8
-309
lines changed

4 files changed

+8
-309
lines changed

keep-ui/app/providers/page.client.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"use client";
2-
import { FrigadeAnnouncement } from "@frigade/react";
32
import {
43
Providers,
54
defaultProvider,
@@ -200,19 +199,6 @@ export default function ProvidersPage({
200199

201200
return (
202201
<>
203-
<FrigadeAnnouncement
204-
flowId="flow_VpefBUPWpliWceBm"
205-
modalPosition="center"
206-
onButtonClick={(stepData, index, cta) => {
207-
if (cta === "primary") {
208-
window.open(
209-
"https://calendly.com/d/4p7-8dg-399/keep-onboarding",
210-
"_blank"
211-
);
212-
}
213-
return true;
214-
}}
215-
/>
216202
{installedProviders.length > 0 && (
217203
<ProvidersTiles
218204
providers={installedProviders}

keep-ui/app/providers/page.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
1-
import { FrigadeProvider } from "@frigade/react";
21
import { getServerSession } from "next-auth/next";
32
import { authOptions } from "pages/api/auth/[...nextauth]";
43
import ProvidersPage from "./page.client";
5-
import Cookies from "js-cookie";
64

75
export default async function Page({
86
searchParams,
97
}: {
108
searchParams?: { [key: string]: string };
119
}) {
1210
const session = await getServerSession(authOptions);
13-
return (
14-
<FrigadeProvider
15-
publicApiKey="api_public_6BKR7bUv0YZ5dqnjLGeHpRWCHaDWeb5cVobG3A9YkW0gOgafOEBvtJGZgvhp8PGb"
16-
userId={session?.user?.email || Cookies.get("anonymousId")}
17-
config={{
18-
debug: true,
19-
defaultAppearance: { theme: { colorPrimary: "#F97316" } },
20-
}}
21-
>
22-
<ProvidersPage searchParams={searchParams} />
23-
</FrigadeProvider>
24-
);
11+
return <ProvidersPage searchParams={searchParams} />;
2512
}
2613

2714
export const metadata = {

0 commit comments

Comments
 (0)