fix changed api imports

This commit is contained in:
Johannes Kirschbauer
2023-11-04 09:55:53 +01:00
parent 376aee57e9
commit aed41a8fbf
3 changed files with 4 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
"plugins": ["@typescript-eslint"],
"ignorePatterns": ["**/src/api/*"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}

View File

@@ -10,7 +10,7 @@ import {
import { useSearchParams } from "next/navigation";
import { Suspense, useState } from "react";
import { createFlake } from "@/api/default/default";
import { createFlake } from "@/api/flake/flake";
import { useAppState } from "@/components/hooks/useAppContext";
import { Confirm } from "@/components/join/confirm";
import { Layout } from "@/components/join/layout";
@@ -27,7 +27,7 @@ export default function JoinPrequel() {
const queryParams = useSearchParams();
const flakeUrl = queryParams.get("flake") || "";
const flakeAttr = queryParams.get("attr") || "default";
const [forkInProgress, setForkInProgress] = useState(false);
const [, setForkInProgress] = useState(false);
const { setAppState } = useAppState();
const { control, formState, getValues, reset, watch, handleSubmit } =

View File

@@ -21,8 +21,7 @@
}
],
"paths": {
"@/*": ["./src/*"],
"@API/*": ["./src/api/*"]
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],