mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-25 05:51:04 -08:00
fix: type error
This commit is contained in:
parent
eae68a734b
commit
3cb9668880
2 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ const InfoContainer = styled.div`
|
|||
padding: 0 12px;
|
||||
`;
|
||||
|
||||
export default function FindInPage(): JSX.Element | undefined {
|
||||
export default function FindInPage(): JSX.Element | null {
|
||||
const [open, openSetter] = useState(false);
|
||||
const [text, textSetter] = useState('');
|
||||
const [activeMatch, activeMatchSetter] = useState(0);
|
||||
|
|
@ -50,7 +50,7 @@ export default function FindInPage(): JSX.Element | undefined {
|
|||
};
|
||||
}, [handleOpenFindInPage, updateFindInPageMatches]);
|
||||
if (!open) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<Root>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export const remoteMethods = {
|
|||
await service.menu.buildContextMenuAndPopup(ipcSafeMenus, parameters, windowName);
|
||||
return unregister;
|
||||
},
|
||||
closeCurrentWindow: async (): Promise<() => void> => {
|
||||
closeCurrentWindow: async (): Promise<void> => {
|
||||
await service.window.close(windowName);
|
||||
},
|
||||
/** call NodeJS.path */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue