fix: re-render on insights with orgs (#11395)

This commit is contained in:
alannnc authored and GitHub committed 2023-09-18 16:36:07 -07:00
1 parent a3413216f6
commit 56b1243e59
10 files changed
+26 -37

No files matched your search

-17
View File
@@ -20,19 +20,6 @@ import { RefreshCcw, UserPlus, Users } from "@calcom/ui/components/icon";
import PageWrapper from "@components/PageWrapper";
const Heading = () => {
const { t } = useLocale();
return (
<div className="min-w-52 hidden md:block">
<h3 className="font-cal max-w-28 sm:max-w-72 md:max-w-80 text-emphasis truncate text-xl font-semibold tracking-wide xl:max-w-full">
{t("insights")}
</h3>
<p className="text-default mt-2 hidden text-sm md:block">{t("insights_subtitle")}</p>
</div>
);
};
export default function InsightsPage() {
const { t } = useLocale();
const { data: user } = trpc.viewer.me.useQuery();
@@ -79,10 +66,6 @@ export default function InsightsPage() {
<></>
) : (
<FiltersProvider>
<div className="ml-auto mt-0">
<Heading />
</div>
<Filters />
<div className="mb-4 space-y-6">