mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-24 12:48:47 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -4,7 +4,7 @@ import { usePathname, useRouter, useSearchParams } from "next/navigation";
|
|||||||
import { useCallback, useEffect, useState } from "react";
|
import { useCallback, useEffect, useState } from "react";
|
||||||
|
|
||||||
const PAGES = ["compose", "application", "postgres", "redis", "mysql"] as const;
|
const PAGES = ["compose", "application", "postgres", "redis", "mysql"] as const;
|
||||||
type Page = typeof PAGES[number];
|
type Page = (typeof PAGES)[number];
|
||||||
|
|
||||||
type Shortcuts = Record<string, string>;
|
type Shortcuts = Record<string, string>;
|
||||||
type ShortcutsDictionary = Record<Page, Shortcuts>;
|
type ShortcutsDictionary = Record<Page, Shortcuts>;
|
||||||
@@ -97,9 +97,7 @@ export function UseKeyboardNav({ forPage }: { forPage: Page }) {
|
|||||||
|
|
||||||
if (key in shortcuts) {
|
if (key in shortcuts) {
|
||||||
const tab = shortcuts[key]!;
|
const tab = shortcuts[key]!;
|
||||||
router.push(
|
router.push(`${pathname}?${updateSearchParam("tab", tab)}`);
|
||||||
`${pathname}?${updateSearchParam("tab", tab)}`,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (key === "g") {
|
if (key === "g") {
|
||||||
|
|||||||
Reference in New Issue
Block a user