mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 08:13:37 +00:00
style: fix formatting with Prettier
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { createRouter, createMemoryHistory, createBrowserHistory } from "@tanstack/react-router";
|
||||
import { routeTree } from "../routeTree.gen";
|
||||
import { createRouter, createMemoryHistory, createBrowserHistory } from '@tanstack/react-router';
|
||||
import { routeTree } from '../routeTree.gen';
|
||||
|
||||
// Use browser history in web mode (for e2e tests and dev), memory history in Electron
|
||||
const isElectron = typeof window !== "undefined" && window.electronAPI !== undefined;
|
||||
const isElectron = typeof window !== 'undefined' && window.electronAPI !== undefined;
|
||||
|
||||
const history = isElectron
|
||||
? createMemoryHistory({ initialEntries: [window.location.pathname || "/"] })
|
||||
? createMemoryHistory({ initialEntries: [window.location.pathname || '/'] })
|
||||
: createBrowserHistory();
|
||||
|
||||
export const router = createRouter({
|
||||
@@ -14,7 +14,7 @@ export const router = createRouter({
|
||||
history,
|
||||
});
|
||||
|
||||
declare module "@tanstack/react-router" {
|
||||
declare module '@tanstack/react-router' {
|
||||
interface Register {
|
||||
router: typeof router;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user