diff --git a/apps/client/src/widgets/TabHistoryNavigationButtons.tsx b/apps/client/src/widgets/TabHistoryNavigationButtons.tsx index d0e6afced..76fa80b6e 100644 --- a/apps/client/src/widgets/TabHistoryNavigationButtons.tsx +++ b/apps/client/src/widgets/TabHistoryNavigationButtons.tsx @@ -1,14 +1,16 @@ import "./TabHistoryNavigationButtons.css"; +import { useEffect, useMemo, useState } from "preact/hooks"; + import { t } from "../services/i18n"; -import ActionButton from "./react/ActionButton"; -import { useCallback, useMemo } from "preact/hooks"; -import { handleHistoryContextMenu } from "./launch_bar/HistoryNavigation"; import { dynamicRequire } from "../services/utils"; +import { handleHistoryContextMenu } from "./launch_bar/HistoryNavigation"; +import ActionButton from "./react/ActionButton"; export default function TabHistoryNavigationButtons() { const webContents = useMemo(() => dynamicRequire("@electron/remote").getCurrentWebContents(), []); const onContextMenu = handleHistoryContextMenu(webContents); + const { canGoBack, canGoForward } = useBackForwardState(webContents); return (