mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
type
This commit is contained in:
parent
5adac095a6
commit
d3cec93c03
@ -200,9 +200,8 @@ const FileViewer: React.FC<FileViewerProps> = ({
|
||||
>(undefined);
|
||||
|
||||
const [openFileInfo, setOpenFileInfo] = useState(false);
|
||||
const [moreMenuAnchorEl, setMoreMenuAnchorEl] = useState<
|
||||
HTMLElement | undefined
|
||||
>(undefined);
|
||||
const [moreMenuAnchorEl, setMoreMenuAnchorEl] =
|
||||
useState<HTMLElement | null>(null);
|
||||
const [openImageEditor, setOpenImageEditor] = useState(false);
|
||||
|
||||
// If `true`, then we need to trigger a sync with remote when we close.
|
||||
@ -281,7 +280,7 @@ const FileViewer: React.FC<FileViewerProps> = ({
|
||||
);
|
||||
|
||||
const handleMoreMenuClose = useCallback(
|
||||
() => setMoreMenuAnchorEl(undefined),
|
||||
() => setMoreMenuAnchorEl(null),
|
||||
[],
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user