formbricks.com hide feedback widget

This commit is contained in:
Matthias Nannt
2023-01-05 16:32:49 +01:00
parent 104edbd214
commit 1d739f75f1
2 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -63,7 +63,11 @@ function classNames(...classes) {
return classes.filter(Boolean).join(" ");
}
export default function AppPage({ setShowFeedback = () => {} }) {
interface AppPageProps {
setShowFeedback?: (b: boolean) => void;
}
export default function AppPage({ setShowFeedback = () => {} }: AppPageProps) {
const [sidebarOpen, setSidebarOpen] = useState(false);
return (
@@ -13,8 +13,8 @@ export default function FeedbackButton() {
const [scriptReady, setScriptReady] = useState(false);
return (
<>
<Script
src="https://cdn.jsdelivr.net/npm/@formbricks/feedback@0.1.2/dist/index.umd.js"
{/* <Script
src="https://cdn.jsdelivr.net/npm/@formbricks/feedback@0.1.3/dist/index.umd.js"
defer
onReady={() => setScriptReady(true)}
/>
@@ -40,7 +40,7 @@ export default function FeedbackButton() {
}}>
Feedback
</button>
)}
)} */}
</>
);
}