Skip to content

Commit 427210a

Browse files
committed
update import statements from root
1 parent c40ad05 commit 427210a

File tree

6 files changed

+36
-29
lines changed

6 files changed

+36
-29
lines changed

src/api/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { auth } from "../firebase/config";
1+
import { auth } from "firebase/config";
22
import {
33
createUserWithEmailAndPassword,
44
signInWithEmailAndPassword,

src/api/profile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { UserCredential } from "firebase/auth";
2-
import { auth, db } from "../firebase/config";
2+
import { auth, db } from "firebase/config";
33
import { doc, setDoc, updateDoc, getDoc } from "@firebase/firestore";
4-
import { UserProfile } from "../types/profile";
4+
import { UserProfile } from "types/profile";
55

66
const USER_PATH = "users";
77

src/context/AuthContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { onAuthStateChanged } from "firebase/auth";
3-
import { auth } from "../firebase/config";
3+
import { auth } from "firebase/config";
44
import { getUserData } from "api/profile";
55
import { UserProfile } from "types/profile";
66

src/pages/Login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import React from "react";
12
import { login } from "api/auth";
23
import { FirebaseError } from "firebase/app";
34
import { useNotification } from "hooks/notification";
4-
import React from "react";
5-
import Login, { LoginFields } from "../components/auth/Login";
5+
import Login, { LoginFields } from "components/auth/Login";
66

77
const LoginPage = () => {
88
const { showSuccess, showError } = useNotification();

src/pages/Signup.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import React from "react";
12
import { FirebaseError } from "firebase/app";
23
import { useNotification } from "hooks/notification";
3-
import React from "react";
4-
import { signUp } from "../api/auth";
5-
import Signup, { SignupFields } from "../components/auth/Signup";
4+
import { signUp } from "api/auth";
5+
import Signup, { SignupFields } from "components/auth/Signup";
66

77
const SignupPage = () => {
88
const { showSuccess, showError } = useNotification();

tsconfig.json

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
{
2-
"compilerOptions": {
3-
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
7-
"esModuleInterop": true,
8-
"allowSyntheticDefaultImports": true,
9-
"strict": true,
10-
"forceConsistentCasingInFileNames": true,
11-
"noFallthroughCasesInSwitch": true,
12-
"module": "esnext",
13-
"moduleResolution": "node",
14-
"resolveJsonModule": true,
15-
"isolatedModules": true,
16-
"noEmit": true,
17-
"jsx": "react-jsx",
18-
"baseUrl": "./src"
19-
},
20-
"include": ["src", "src/custom.d.ts"]
21-
}
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
9+
"allowJs": true,
10+
"skipLibCheck": true,
11+
"esModuleInterop": true,
12+
"allowSyntheticDefaultImports": true,
13+
"strict": true,
14+
"forceConsistentCasingInFileNames": true,
15+
"noFallthroughCasesInSwitch": true,
16+
"module": "esnext",
17+
"moduleResolution": "node",
18+
"resolveJsonModule": true,
19+
"isolatedModules": true,
20+
"noEmit": true,
21+
"jsx": "react-jsx",
22+
"baseUrl": "./src"
23+
},
24+
"include": [
25+
"src",
26+
"src/custom.d.ts"
27+
]
28+
}

0 commit comments

Comments
 (0)