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

Convert Tawk module to React component #899

Open
moshfeu opened this issue Mar 2, 2022 · 0 comments
Open

Convert Tawk module to React component #899

moshfeu opened this issue Mar 2, 2022 · 0 comments
Labels
level: rookie Beginners level task

Comments

@moshfeu
Copy link
Member

moshfeu commented Mar 2, 2022

Currently we are initiating Tawk in the global scope.

(function() {
const s1 = document.createElement('script');
s1.async = true;
s1.src = 'https://embed.tawk.to/60a117b2185beb22b30dae86/1f5qk953t';
s1.setAttribute('crossorigin', '*');
document.head.prepend(s1);
})();
window.Tawk_API = window.Tawk_API || {};
window.Tawk_API.onLoad = function() {
window.Tawk_API.addTags(['Mentor', 'User']);
};
}

We should convert it to the React component. Docs

We can get rid of the static tags for now, we will implement it in the right way later.

@moshfeu moshfeu added the level: rookie Beginners level task label Mar 2, 2022
KravMaguy pushed a commit to KravMaguy/find-a-mentor that referenced this issue May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level: rookie Beginners level task
Projects
None yet
Development

No branches or pull requests

1 participant