add op.js to public site

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-05 22:39:22 +01:00
parent 2c20c1e3df
commit a92ce66048
10 changed files with 28 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
'use client';
import { useState } from 'react';
import { useEffect, useState } from 'react';
import { Button } from '@/components/ui/button';
import {
Dialog,
@@ -14,6 +14,14 @@ import {
export function JoinWaitlist() {
const [value, setValue] = useState('');
const [open, setOpen] = useState(false);
useEffect(() => {
if (open) {
// @ts-ignore
window.openpanel.event('waitlist_success');
}
}, [open]);
return (
<>
<Dialog open={open} onOpenChange={setOpen}>