crisp and other changes

This commit is contained in:
Shekar Siri 2021-05-06 16:14:32 +05:30
parent 29a967c2a6
commit dbd253f515
4 changed files with 0 additions and 42 deletions

View file

@ -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>

View file

@ -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>
)
}

View file

@ -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;

View file

@ -1 +0,0 @@
export { default } from './Crisp'