Skip to content

Commit

Permalink
move /insights pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Jan 18, 2025
1 parent cf58fce commit a5edeb1
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
"use client";

import type { ReactElement } from "react";
import { useSession } from "next-auth/react";

import Shell from "@calcom/features/shell/Shell";
import { UpgradeTip } from "@calcom/features/tips";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc";
import { Button, ButtonGroup } from "@calcom/ui";
import { Icon } from "@calcom/ui";

export default function InsightsLayout({ children }: { children: React.ReactNode }) {
const { t } = useLocale();
const { data: user } = trpc.viewer.me.useQuery();
const session = useSession();

const features = [
{
Expand Down Expand Up @@ -59,11 +58,9 @@ export default function InsightsLayout({ children }: { children: React.ReactNode
</ButtonGroup>
</div>
}>
{!user ? null : children}
{!session.data?.user ? null : children}
</UpgradeTip>
</Shell>
</div>
);
}

export const getInsightsLayout = (page: ReactElement) => <InsightsLayout>{page}</InsightsLayout>;
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions apps/web/app/insights/layout.tsx

This file was deleted.

0 comments on commit a5edeb1

Please sign in to comment.