📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
display AddFunnel to authed users only
Blue Mouse04825d10ceb8
diff --git a/app/pages/Project/View/ViewProject.tsx b/app/pages/Project/View/ViewProject.tsxindex 8a3a34292..ac60b723b 100644--- a/app/pages/Project/View/ViewProject.tsx+++ b/app/pages/Project/View/ViewProject.tsx@@ -2547,6 +2547,7 @@ const ViewProject = ({funnels={project.funnels}deleteFunnel={onFunnelDelete}loading={funnelActionLoading}+ authenticated={authenticated}/>))}{(activeTab === PROJECT_TABS.funnels && !activeFunnel && _isEmpty(project.funnels) && (diff --git a/app/pages/Project/View/components/FunnelsList.tsx b/app/pages/Project/View/components/FunnelsList.tsxindex 85def6faf..4f07461c7 100644--- a/app/pages/Project/View/components/FunnelsList.tsx+++ b/app/pages/Project/View/components/FunnelsList.tsx@@ -13,6 +13,7 @@ interface IFunnelsList {openFunnel: (funnel: IFunnel) => voiddeleteFunnel: (id: string) => voidloading: boolean+ authenticated: boolean}interface IFunnelCard {@@ -98,7 +99,9 @@ const AddFunnel = ({ openFunnelSettings }: IAddFunnel): JSX.Element => {* @param {string} name - Row name to override country name with.* @returns {JSX.Element}*/-const FunnelsList = ({ funnels, openFunnelSettings, openFunnel, deleteFunnel, loading }: IFunnelsList): JSX.Element => (+const FunnelsList = ({+ funnels, openFunnelSettings, openFunnel, deleteFunnel, loading, authenticated,+}: IFunnelsList): JSX.Element => (<ul className='grid grid-cols-1 gap-x-6 gap-y-3 lg:gap-y-6 lg:grid-cols-3 mt-2'>{_map(funnels, (funnel) => (<FunnelCard@@ -110,9 +113,11 @@ const FunnelsList = ({ funnels, openFunnelSettings, openFunnel, deleteFunnel, loloading={loading}/>))}- <AddFunnel- openFunnelSettings={openFunnelSettings}- />+ {authenticated && (+ <AddFunnel+ openFunnelSettings={openFunnelSettings}+ />+ )}</ul>)