Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/courses/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function CreateCourse() {
if (email && !isOnboardingComplete(email)) {
router.push("/onboarding")
} else {
// eslint-disable-next-line react-hooks/set-state-in-effect
setIsLoading(false)
}
}
Expand Down
1 change: 1 addition & 0 deletions app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default function Dashboard() {
// Load user stats
const profile = getUserProfile()
if (profile?.stats) {
// eslint-disable-next-line react-hooks/set-state-in-effect
setUserStats(profile.stats)
}

Expand Down
1 change: 1 addition & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default function RootLayout({
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
{/* eslint-disable-next-line @next/next/no-page-custom-font */}
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet" />
</head>
<body className={`${inter.className} bg-[var(--background)] text-[var(--foreground)] font-display overflow-x-hidden antialiased selection:bg-primary selection:text-white transition-colors duration-300`}>
Expand Down
2 changes: 1 addition & 1 deletion app/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default function Profile() {
</div>
<div>
<p className="text-sm font-medium text-slate-900 dark:text-white">Profile completed</p>
<p className="text-xs text-slate-500 dark:text-slate-400 mt-1">You're all set up.</p>
<p className="text-xs text-slate-500 dark:text-slate-400 mt-1">You&apos;re all set up.</p>
<p className="text-[10px] text-slate-400 mt-1">1h ago</p>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions app/quizzes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default function MyQuizzes() {
return
}

// eslint-disable-next-line react-hooks/set-state-in-effect
setQuizzes(getUserQuizzes())
setIsLoading(false)
}
Expand Down
1 change: 1 addition & 0 deletions app/schedule/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default function Schedule() {
if (email && !isOnboardingComplete(email)) {
router.push("/onboarding")
} else {
// eslint-disable-next-line react-hooks/set-state-in-effect
setIsLoading(false)
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import NextAuth from "next-auth"
import Google from "next-auth/providers/google"
import GitHub from "next-auth/providers/github"

// @ts-ignore
// @ts-expect-error Types might be missing from the beta version of NextAuth
export const { handlers, signIn, signOut, auth } = NextAuth({
providers: [
Google({
Expand Down
2 changes: 1 addition & 1 deletion lib/security.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('security lib', () => {

// Passing something that isn't a string might trigger an error if not handled
// although verifyData expects a string type.
// @ts-ignore
// @ts-expect-error Deliberately testing with incorrect type
const isValid = verifyData(testData, { not: 'a string' });
assert.strictEqual(isValid, false);
});
Expand Down
4 changes: 2 additions & 2 deletions lib/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export class MockStorage {

export function setupTests() {
if (typeof global.window === "undefined") {
// @ts-ignore
// @ts-expect-error Mocking global window object
global.window = {};
}

if (typeof global.localStorage === "undefined") {
// @ts-ignore
// @ts-expect-error Mocking global localStorage
global.localStorage = new MockStorage();
}
}
Expand Down