mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
feat: add single player mode
This commit is contained in:
@ -27,6 +27,10 @@ export const ElementVisible = ({ target, children }: ElementVisibleProps) => {
|
||||
};
|
||||
}, [target]);
|
||||
|
||||
useEffect(() => {
|
||||
setVisible(!!document.querySelector(target));
|
||||
}, [target]);
|
||||
|
||||
if (!visible) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user