minuit ticket

This commit is contained in:
2025-10-01 16:02:27 +02:00
parent c6041e81ab
commit 9a2c0428e0
3 changed files with 177 additions and 12 deletions
+21 -1
View File
@@ -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" />