Skip to content

Commit 62501fa

Browse files
alejsdevjpizquierdo
authored andcommitted
🔧 Update tsconfig.json and fix errors (fastapi#1859)
1 parent c1cafe1 commit 62501fa

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

frontend/src/components/Common/UserMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const UserMenu = () => {
2626
</MenuTrigger>
2727

2828
<MenuContent>
29-
<Link to="settings">
29+
<Link to="/settings">
3030
<MenuItem
3131
closeOnSelect
3232
value="user-settings"

frontend/src/components/ui/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client"
22

33
import { ChakraProvider } from "@chakra-ui/react"
4-
import React, { type PropsWithChildren } from "react"
4+
import { type PropsWithChildren } from "react"
55
import { system } from "../../theme"
66
import { ColorModeProvider } from "./color-mode"
77
import { Toaster } from "./toaster"

frontend/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
QueryClientProvider,
66
} from "@tanstack/react-query"
77
import { RouterProvider, createRouter } from "@tanstack/react-router"
8-
import React, { StrictMode } from "react"
8+
import { StrictMode } from "react"
99
import ReactDOM from "react-dom/client"
1010
import { routeTree } from "./routeTree.gen"
1111

frontend/src/routes/_layout/admin.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ function UsersTable() {
4646

4747
const setPage = (page: number) => {
4848
navigate({
49-
to: "/_layout/admin",
50-
search: { page: page },
49+
to: "/admin",
50+
search: (prev) => ({ ...prev, page }),
5151
})
5252
}
5353

frontend/src/routes/_layout/items.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function ItemsTable() {
5252

5353
const setPage = (page: number) => {
5454
navigate({
55-
to: "/_layout/items",
56-
search: { page: page },
55+
to: "/items",
56+
search: (prev) => ({ ...prev, page }),
5757
})
5858
}
5959

frontend/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@/*": ["./src/*"]
2222
}
2323
},
24-
"include": ["src/**/*.ts", "tests/**/*.ts", "playwright.config.ts"],
24+
"include": ["src", "tests", "playwright.config.ts"],
2525
"references": [
2626
{
2727
"path": "./tsconfig.node.json"

0 commit comments

Comments
 (0)