Skip to content

Commit

Permalink
remove crisp
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Apr 13, 2024
1 parent 48a6c4e commit 533005c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 35 deletions.
1 change: 0 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"cmdk": "^0.2.0",
"cobe": "^0.6.3",
"concurrently": "^8.0.1",
"crisp-sdk-web": "^1.0.19",
"d3-array": "^3.2.4",
"framer-motion": "^10.16.16",
"fuse.js": "^6.6.2",
Expand Down
8 changes: 0 additions & 8 deletions apps/web/ui/layout/upgrade-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import useWorkspace from "@/lib/swr/use-workspace";
import { Badge, useRouterStuff } from "@dub/ui";
import { Crisp } from "crisp-sdk-web";
import Cookies from "js-cookie";
import { useParams } from "next/navigation";
import { useEffect, useState } from "react";
Expand All @@ -16,13 +15,6 @@ export default function UpgradeBanner() {

useEffect(() => {
if (plan) {
Crisp.session.setData({
workspaceId: id,
workspaceName: name,
workspaceSlug: slug,
plan,
...(stripeId && { stripeId }),
});
/* show pro banner if:
- free plan
- not hidden by user for this workspace
Expand Down
37 changes: 11 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 533005c

Please sign in to comment.