File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 "@docusaurus/remark-plugin-npm2yarn" : " 3.9.2" ,
4343 "@docusaurus/theme-common" : " 3.9.2" ,
4444 "@docusaurus/theme-mermaid" : " 3.9.2" ,
45- "@intercom/messenger-js-sdk" : " ^0.0.14" ,
4645 "@lottiefiles/react-lottie-player" : " ^3.6.0" ,
4746 "@mdx-js/react" : " ^3.1.0" ,
4847 "@mermaid-js/layout-elk" : " ^0.1.9" ,
Original file line number Diff line number Diff line change 11import React , { useEffect , useState } from 'react'
22import Footer from '@theme-original/Footer'
3- import { Intercom } from '@intercom/messenger-js-sdk'
4- import useIsBrowser from '@docusaurus/useIsBrowser'
53
64export default function FooterWrapper ( props ) {
75 const [ canShowFooter , setCanShowFooter ] = useState ( true )
@@ -21,22 +19,13 @@ export default function FooterWrapper(props) {
2119
2220 useEffect ( ( ) => {
2321 if ( typeof window !== 'undefined' ) {
24- // check if footer can be shown
2522 const path = window . location . pathname
2623 if ( path . includes ( 'quickstart' ) ) {
2724 setCanShowFooter ( false )
2825 }
2926 }
3027 } , [ ] )
3128
32- const isBrowser = useIsBrowser ( )
33- const isProd = process . env . NODE_ENV === 'production'
34- if ( isBrowser && isProd ) {
35- Intercom ( {
36- app_id : 'txttgas6' ,
37- } )
38- }
39-
4029 if ( ! canShowFooter ) return null
4130
4231 return (
You can’t perform that action at this time.
0 commit comments