refactor(web): added types and some small changes (#1722)

This commit is contained in:
Michel Heusschen
2023-02-10 23:17:39 +01:00
committed by GitHub
parent c90dcde7cc
commit bd71e087d4
6 changed files with 20 additions and 49 deletions

View File

@@ -64,12 +64,8 @@
let isShowAlbumPicker = false;
let addToSharedAlbum = false;
const handleShowMenu = (event: CustomEvent) => {
contextMenuPosition = {
x: event.detail.mouseEvent.x,
y: event.detail.mouseEvent.y
};
const handleShowMenu = ({ x, y }: MouseEvent) => {
contextMenuPosition = { x, y };
isShowAddMenu = !isShowAddMenu;
};