crisp and other changes
This commit is contained in:
parent
e60ba05b85
commit
0f4c74eb7a
4 changed files with 0 additions and 42 deletions
|
|
@ -43,11 +43,7 @@ const Onboarding = (props) => {
|
|||
</div>
|
||||
</div>
|
||||
<div className="py-6 px-4 w-full flex items-center fixed bottom-0 bg-white border-t z-10">
|
||||
<div className="crisp-chat" id="crisp-chat">
|
||||
<Crisp />
|
||||
</div>
|
||||
<div className="ml-auto">
|
||||
{/* <Button primary size="small" plain>Done. See Recoded Sessions</Button> */}
|
||||
<span className="mx-2"/>
|
||||
<OnboardingNavButton />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -34,12 +34,6 @@ export default function SideMenu() {
|
|||
iconName="github"
|
||||
onClick={() => window.open('https://github.com/openreplay/openreplay/issues', '_blank')}
|
||||
/>
|
||||
|
||||
<SideMenuitem
|
||||
title="Chat with us"
|
||||
iconName="chat-dots"
|
||||
onClick={() => $crisp.push(['do', 'chat:open']) }
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,31 +0,0 @@
|
|||
import React from 'react';
|
||||
|
||||
class Crisp extends React.Component {
|
||||
componentDidMount () {
|
||||
if (!!window.$crisp) {
|
||||
window.$crisp.push(['do', 'chat:show']);
|
||||
} else {
|
||||
window.$crisp = [];
|
||||
window.CRISP_WEBSITE_ID = "adc74d6f-70c5-4947-bdf1-c359f3becfaf";
|
||||
|
||||
(function() {
|
||||
var d = document;
|
||||
var s = d.createElement("script");
|
||||
|
||||
s.src = "https://client.crisp.chat/l.js";
|
||||
s.async = 1;
|
||||
d.getElementById("crisp-chat").appendChild(s);
|
||||
})();
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
window.$crisp.push(['do', 'chat:hide']);
|
||||
}
|
||||
|
||||
render () {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export default Crisp;
|
||||
|
|
@ -1 +0,0 @@
|
|||
export { default } from './Crisp'
|
||||
Loading…
Add table
Reference in a new issue