You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-04 11:51:45 +03:00
fix bits which missed the review cutting block
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -434,7 +434,7 @@ export const aboveLeftOf = (elementRect, chevronFace="none") => {
|
||||
};
|
||||
|
||||
export const useContextMenu = () => {
|
||||
const _button = useRef(null);
|
||||
const button = useRef(null);
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
const open = () => {
|
||||
setIsOpen(true);
|
||||
@@ -443,7 +443,7 @@ export const useContextMenu = () => {
|
||||
setIsOpen(false);
|
||||
};
|
||||
|
||||
return [isOpen, _button, open, close, setIsOpen];
|
||||
return [isOpen, button, open, close, setIsOpen];
|
||||
};
|
||||
|
||||
export default class LegacyContextMenu extends ContextMenu {
|
||||
|
||||
Reference in New Issue
Block a user