typescript issues and add eslint back
This commit is contained in:
parent
cc05baf67d
commit
6faba22082
6 changed files with 11 additions and 5 deletions
6
.eslintrc.json
Normal file
6
.eslintrc.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"next/core-web-vitals",
|
||||
"next/typescript"
|
||||
]
|
||||
}
|
|
@ -44,6 +44,8 @@
|
|||
"cors": "2.8.5",
|
||||
"drizzle-orm": "0.33.0",
|
||||
"emblor": "1.4.6",
|
||||
"eslint": "9.15.0",
|
||||
"eslint-config-next": "15.0.3",
|
||||
"express": "4.21.0",
|
||||
"express-rate-limit": "7.4.0",
|
||||
"glob": "11.0.0",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// import { orgs, sites, resources, exitNodes, targets } from "@server/db/schema";
|
||||
import { orgs, sites, resources, exitNodes, targets } from "@server/db/schema";
|
||||
// import db from "@server/db";
|
||||
// import { createAdminRole } from "@server/db/ensureActions";
|
||||
|
||||
|
|
|
@ -6,16 +6,14 @@ import { useState } from "react";
|
|||
|
||||
interface OrgUserProviderProps {
|
||||
children: React.ReactNode;
|
||||
orgUser: GetOrgUserResponse | null;
|
||||
orgUser: GetOrgUserResponse;
|
||||
}
|
||||
|
||||
export function OrgUserProvider({
|
||||
children,
|
||||
orgUser: serverOrgUser,
|
||||
}: OrgUserProviderProps) {
|
||||
const [orgUser, setOrgUser] = useState<GetOrgUserResponse | null>(
|
||||
serverOrgUser
|
||||
);
|
||||
const [orgUser, setOrgUser] = useState<GetOrgUserResponse>(serverOrgUser);
|
||||
|
||||
const updateOrgUser = (updateOrgUser: Partial<GetOrgUserResponse>) => {
|
||||
if (!orgUser) {
|
||||
|
|
Loading…
Add table
Reference in a new issue