remove logs
This commit is contained in:
parent
cc3d138fd3
commit
8b92a780bf
2 changed files with 8 additions and 14 deletions
|
@ -83,12 +83,7 @@ export default function SignupCodesManagementPage({ authService }: SignupCodesMa
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
const host = window.location.origin
|
const host = window.location.origin
|
||||||
const url = `${host}?c=${code}`
|
const url = `${host}?c=${code}`
|
||||||
navigator.clipboard.writeText(url)
|
navigator.clipboard.writeText(url).catch((err) => {
|
||||||
.then(() => {
|
|
||||||
// Optional: Show a success message or notification
|
|
||||||
console.log('Copied to clipboard:', url)
|
|
||||||
})
|
|
||||||
.catch(err => {
|
|
||||||
console.error('Failed to copy:', err)
|
console.error('Failed to copy:', err)
|
||||||
})
|
})
|
||||||
setTooltipPosition(null)
|
setTooltipPosition(null)
|
||||||
|
@ -99,7 +94,7 @@ export default function SignupCodesManagementPage({ authService }: SignupCodesMa
|
||||||
const rect = (e.currentTarget as HTMLElement).getBoundingClientRect()
|
const rect = (e.currentTarget as HTMLElement).getBoundingClientRect()
|
||||||
setTooltipPosition({
|
setTooltipPosition({
|
||||||
x: rect.left + rect.width / 2,
|
x: rect.left + rect.width / 2,
|
||||||
y: rect.top - 10
|
y: rect.top - 10,
|
||||||
})
|
})
|
||||||
setActiveCode(code)
|
setActiveCode(code)
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,6 @@ export function useUser(): User | null {
|
||||||
const [user, setUser] = useState(globalUser)
|
const [user, setUser] = useState(globalUser)
|
||||||
|
|
||||||
useMessageListener('user:updated', (u) => {
|
useMessageListener('user:updated', (u) => {
|
||||||
console.log('recieved user updated event')
|
|
||||||
setUser(u)
|
setUser(u)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue