Skip to content

Commit

Permalink
Remove cookie botc from console (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino authored Jun 4, 2024
1 parent 4ae5cd5 commit bbe4476
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 34 deletions.
29 changes: 13 additions & 16 deletions assets/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -60,21 +59,19 @@ function ThemeProviders({ children }: { children: ReactNode }) {
<ThemeProvider theme={honorableTheme}>
<StyledThemeProvider theme={mergedStyledTheme}>
<OverlayContextProvider>
<CookieSettingsProvider>
<CssBaseline />
<GlobalStyle />
<DocSearchStyles />
<PluralErrorBoundary>
<Grommet
className="grommet-root"
// @ts-ignore
theme={mergedStyledTheme}
themeMode="dark"
>
{children}
</Grommet>
</PluralErrorBoundary>
</CookieSettingsProvider>
<CssBaseline />
<GlobalStyle />
<DocSearchStyles />
<PluralErrorBoundary>
<Grommet
className="grommet-root"
// @ts-ignore
theme={mergedStyledTheme}
themeMode="dark"
>
{children}
</Grommet>
</PluralErrorBoundary>
</OverlayContextProvider>
</StyledThemeProvider>
</ThemeProvider>
Expand Down
13 changes: 0 additions & 13 deletions assets/src/components/login/LoginFooter.tsx
Original file line number Diff line number Diff line change
@@ -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 }) => ({
Expand All @@ -21,8 +19,6 @@ export const FooterLink = styled.a(({ theme }) => ({
}))

export function Footer(props) {
const cookieSettings = useCookieSettings()

return (
<Div
flexGrow={1}
Expand All @@ -45,15 +41,6 @@ export function Footer(props) {
>
Terms & Conditions
</FooterLink>
<FooterLink
href=""
onClick={(e) => {
e.preventDefault()
cookieSettings.show()
}}
>
Cookie settings
</FooterLink>
</FooterList>
</Div>
)
Expand Down
5 changes: 0 additions & 5 deletions assets/src/routes/consoleRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -179,10 +178,6 @@ const accountRoutes = [
path="settings"
element={<AccountSettings />}
/>
<Route
path="cookies"
element={<CookieSettings />}
/>
</Route>,
]

Expand Down

0 comments on commit bbe4476

Please sign in to comment.