fix terminal pathname import for forgejo
All checks were successful
CI / Validate (push) Successful in 1m16s
All checks were successful
CI / Validate (push) Successful in 1m16s
This commit is contained in:
parent
92d5db44e9
commit
01c7ca0b2f
2 changed files with 33 additions and 48 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { usePathname } from "next/navigation";
|
import * as nextNavigation from "next/navigation";
|
||||||
import {
|
import {
|
||||||
createContext,
|
createContext,
|
||||||
memo,
|
memo,
|
||||||
|
|
@ -5377,7 +5377,7 @@ export const parseTickerFilterInput = (value: string): string[] => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const useTerminalState = () => {
|
const useTerminalState = () => {
|
||||||
const pathname = usePathname();
|
const pathname = nextNavigation.usePathname();
|
||||||
const routeFeatures = useMemo(() => getRouteFeatures(pathname), [pathname]);
|
const routeFeatures = useMemo(() => getRouteFeatures(pathname), [pathname]);
|
||||||
const [mode, setMode] = useState<TapeMode>("live");
|
const [mode, setMode] = useState<TapeMode>("live");
|
||||||
const [replaySource, setReplaySource] = useState<string | null>(null);
|
const [replaySource, setReplaySource] = useState<string | null>(null);
|
||||||
|
|
@ -7228,7 +7228,7 @@ const FlowFilterSection = ({
|
||||||
};
|
};
|
||||||
|
|
||||||
export const FlowFilterPopover = ({ filters, onChange }: FlowFilterPopoverProps) => {
|
export const FlowFilterPopover = ({ filters, onChange }: FlowFilterPopoverProps) => {
|
||||||
const pathname = usePathname();
|
const pathname = nextNavigation.usePathname();
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
const rootRef = useRef<HTMLDivElement | null>(null);
|
const rootRef = useRef<HTMLDivElement | null>(null);
|
||||||
const activeCount = countActiveFlowFilterGroups(filters);
|
const activeCount = countActiveFlowFilterGroups(filters);
|
||||||
|
|
@ -9098,7 +9098,7 @@ function SyntheticControlDock() {
|
||||||
|
|
||||||
export function TerminalAppShell({ children }: { children: ReactNode }) {
|
export function TerminalAppShell({ children }: { children: ReactNode }) {
|
||||||
const state = useTerminalState();
|
const state = useTerminalState();
|
||||||
const pathname = usePathname();
|
const pathname = nextNavigation.usePathname();
|
||||||
const [drawerOpen, setDrawerOpen] = useState(false);
|
const [drawerOpen, setDrawerOpen] = useState(false);
|
||||||
const tickerFieldId = useId();
|
const tickerFieldId = useId();
|
||||||
const tickerHintId = useId();
|
const tickerHintId = useId();
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue