minuit ticket
This commit is contained in:
@@ -89,6 +89,27 @@ const App = () => {
|
||||
return subscriber;
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (Platform.OS === "web") {
|
||||
const s = document.createElement("script");
|
||||
s.src = "https://minuit.app/embed/report-a-problem.js";
|
||||
s.async = true;
|
||||
s.setAttribute("data-project-id", "playbackproduction");
|
||||
s.setAttribute("data-position", "right");
|
||||
s.setAttribute("data-offset", "16");
|
||||
s.setAttribute("data-primary-color", "#FB68A8");
|
||||
s.setAttribute("data-bg-primary-color", "#0E0E12");
|
||||
s.setAttribute("data-bg-secondary-color", "#1D1825");
|
||||
s.setAttribute("data-text-color", "#F3F0F5");
|
||||
|
||||
document.body.appendChild(s);
|
||||
return () => {
|
||||
try {
|
||||
s.remove();
|
||||
} catch (_) {}
|
||||
};
|
||||
}
|
||||
}, []);
|
||||
const onAuthStateChanged = async (user) => {
|
||||
if (isInitializing) {
|
||||
setInitializing(false);
|
||||
@@ -112,7 +133,6 @@ const App = () => {
|
||||
if (!loaded || isInitializing) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<StatusBar style="light" />
|
||||
|
||||
Reference in New Issue
Block a user