mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-21 03:03:25 -05:00
formbricks.com hide feedback widget
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
)} */}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user