From bbe4476f7e4419a37f84fb0949ec75806c774afe Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Tue, 4 Jun 2024 15:20:02 -0400 Subject: [PATCH] Remove cookie botc from console (#1015) --- assets/src/App.tsx | 29 +++++++++------------ assets/src/components/login/LoginFooter.tsx | 13 --------- assets/src/routes/consoleRoutes.tsx | 5 ---- 3 files changed, 13 insertions(+), 34 deletions(-) diff --git a/assets/src/App.tsx b/assets/src/App.tsx index ddec15291f..89eeaa5768 100644 --- a/assets/src/App.tsx +++ b/assets/src/App.tsx @@ -18,7 +18,6 @@ import { ThemeProvider as StyledThemeProvider } from 'styled-components' import DocSearchStyles from 'components/help/DocSearchStyles' import { OverlayContextProvider } from 'components/layout/Overlay' -import { CookieSettingsProvider } from 'components/tracking/CookieSettings' import { updateIntercomUnread } from 'components/help/IntercomUpdateUnread' import { DEFAULT_THEME } from './theme' @@ -60,21 +59,19 @@ function ThemeProviders({ children }: { children: ReactNode }) { - - - - - - - {children} - - - + + + + + + {children} + + diff --git a/assets/src/components/login/LoginFooter.tsx b/assets/src/components/login/LoginFooter.tsx index 45c2ca3387..d18aa8c325 100644 --- a/assets/src/components/login/LoginFooter.tsx +++ b/assets/src/components/login/LoginFooter.tsx @@ -1,8 +1,6 @@ import { Div } from 'honorable' import styled from 'styled-components' -import { useCookieSettings } from 'components/tracking/CookieSettings' - import { LOGIN_BREAKPOINT } from './constants' export const FooterLink = styled.a(({ theme }) => ({ @@ -21,8 +19,6 @@ export const FooterLink = styled.a(({ theme }) => ({ })) export function Footer(props) { - const cookieSettings = useCookieSettings() - return (
Terms & Conditions - { - e.preventDefault() - cookieSettings.show() - }} - > - Cookie settings -
) diff --git a/assets/src/routes/consoleRoutes.tsx b/assets/src/routes/consoleRoutes.tsx index 6f926e1660..2cfbe7533a 100644 --- a/assets/src/routes/consoleRoutes.tsx +++ b/assets/src/routes/consoleRoutes.tsx @@ -23,7 +23,6 @@ import { Webhooks } from 'components/account/webhooks/Webhooks' import Users from 'components/account/users/Users' import EmailSettings from 'components/account/email/EmailSettings' import AccountSettings from 'components/account/settings/AccountSettings' -import CookieSettings from 'components/account/settings/CookieSettings' import { AccountVPN } from 'components/account/vpn/VPN' import Apps from 'components/apps/Apps' @@ -179,10 +178,6 @@ const accountRoutes = [ path="settings" element={} /> - } - /> , ]