mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Remove unnecessary useEffect from sharebutton (#5476)
This commit is contained in:
parent
d116dbf0f1
commit
a5324268dc
1 changed files with 0 additions and 7 deletions
|
|
@ -54,13 +54,6 @@ export const ShareButton = ({ item, disabled = false }: ShareButtonProps) => {
|
|||
}
|
||||
}, [cloudIsAuthenticated, sharingEnabled])
|
||||
|
||||
// Cleanup effect to reset flag on unmount
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
initiatedAuthFromThisButtonRef.current = false
|
||||
}
|
||||
}, [])
|
||||
|
||||
// Listen for share success messages from the extension
|
||||
useEffect(() => {
|
||||
const handleMessage = (event: MessageEvent) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue