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