Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced help button #1544

Merged
merged 9 commits into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
trying widgetloader
  • Loading branch information
WissenIstNacht committed Feb 22, 2021
commit b9f851af4bc3af21c00b10444c197aea13002913
32 changes: 10 additions & 22 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,10 @@ class App extends React.Component {
pollConnectivity([web3Providers.default], connected => {
this.setState({ connected })
})
const $zoho = $zoho || {}
$zoho.salesiq = $zoho.salesiq || {
widgetcode:
'8368321708326b3f205f6985224f65416311aafa35bf8cb06e7d9f50921fc950',
values: {},
ready: function() {},
}
const d = document
const s = d.createElement('script')
s.type = 'text/javascript'
s.id = 'zsiqscript'
s.defer = true
s.src = 'https://salesiq.zoho.eu/widget'
const t = d.getElementsByTagName('script')[0]
t.parentNode.insertBefore(s, t)
d.write("<div id='zsiqwidget'></div>")
const script = document.createElement("script");
script.async = true;
script.src = "./widgetLoader.js";
this.div.appendChild(script);
}

componentDidUpdate(prevProps, prevState) {
Expand Down Expand Up @@ -352,24 +340,24 @@ class App extends React.Component {
from={{ opacity: 0, scale: 0.98 }}
to={{ opacity: 1, scale: 1 }}
native
>
>
{({ opacity, scale }) => (
<animated.div
style={{
opacity,
background: theme.background,
}}
>
>
<animated.div
style={{
transform: scale.interpolate(v => `scale3d(${v}, ${v}, 1)`),
}}
>
>
<CustomToast>
<IdentityProvider onResolve={this.handleIdentityResolve}>
<LocalIdentityModalProvider
onShowLocalIdentityModal={this.handleOpenLocalIdentityModal}
>
>
<LocalIdentityModal
address={intentAddress}
label={intentLabel}
Expand All @@ -387,8 +375,8 @@ class App extends React.Component {
wrapper={wrapper}
apps={appsWithIdentifiers}
permissions={permissions}
>
<div css="position: relative; z-index: 0">
>
<div css="position: relative; z-index: 0" ref={el => (this.div = el)}>
<OrgView
apps={appsWithIdentifiers}
appsStatus={appsStatus}
Expand Down
17 changes: 17 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@
window.cleanEthereum = { ...window.ethereum }
</script>
<script src="./index.js"></script>
<script>
var $zoho = $zoho || {}
$zoho.salesiq = $zoho.salesiq || {
widgetcode:
'8368321708326b3f205f6985224f65416311aafa35bf8cb06e7d9f50921fc950',
values: {},
ready: function() {},
}
var d = document
s = d.createElement('script')
s.type = 'text/javascript'
s.id = 'zsiqscript'
s.defer = true
s.src = 'https://salesiq.zoho.eu/widget'
t = d.getElementsByTagName('script')[0]
t.parentNode.insertBefore(s, t)
d.write("<div id='zsiqwidget'></div>")</script>
</body>

</html>