Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some errors and warnings in the build process #159

Merged
merged 1 commit into from
Sep 17, 2024
Merged
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
2 changes: 1 addition & 1 deletion app/(authenticated)/calendar/[eventID]/SignupSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function SignupSheet({
return () => {
socket.off(`signupSheetUpdate:${sheet.signup_id}`, onSheetUpdate);
};
}, []);
});

const locked = useMemo(
() =>
Expand Down
16 changes: 3 additions & 13 deletions app/(authenticated)/quotes/page.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
import * as Quotes from "@/features/quotes";
import { requirePermission } from "@/lib/auth/server";
import { AddQuote, QuoteView } from "./AddEditQuoteForm";
import {
Center,
Group,
Pagination,
PaginationFirst,
PaginationItems,
PaginationLast,
PaginationNext,
PaginationPrevious,
PaginationRoot,
Stack,
} from "@mantine/core";
import Link from "next/link";
import { Stack } from "@mantine/core";
import { QuotesPagination } from "./pagination";

export const dynamic = "force-dynamic";

const PAGE_SIZE = 25;

export default async function QuotesPage(props: {
Expand Down
2 changes: 2 additions & 0 deletions app/iCal/[token]/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { NextRequest, NextResponse } from "next/server";
import * as Calendar from "@/features/calendar";

export const dynamic = "force-dynamic";

export async function GET(
req: NextRequest,
{ params }: { params: { token: string } },
Expand Down
2 changes: 2 additions & 0 deletions app/login/google/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { loginOrCreateUserGoogle } from "@/lib/auth/server";
import { env } from "@/lib/env";
import { NextRequest, NextResponse } from "next/server";

export const dynamic = "force-dynamic";

export async function POST(req: NextRequest): Promise<NextResponse> {
const cookies = req.cookies;
const redirect = cookies.get("ystv-calendar-session.redirect");
Expand Down
2 changes: 2 additions & 0 deletions app/login/slack/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
} from "@/lib/auth/server";
import { env } from "@/lib/env";

export const dynamic = "force-dynamic";

export async function GET(req: NextRequest): Promise<NextResponse> {
const searchParams = req.nextUrl.searchParams;
const code = searchParams.get("code");
Expand Down
2 changes: 1 addition & 1 deletion components/LoginPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function LoginPrompt() {

useEffect(() => {
doLoginRedirect();
}, []);
});

setTimeout(doLoginRedirect, 3000);

Expand Down
2 changes: 1 addition & 1 deletion components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function SearchBar(props: {
props.onChange(searchQueryState);
}, props.delay ?? 500);
return () => clearTimeout(delayInputTimeoutId);
}, [searchQueryState, props.delay]);
}, [searchQueryState, props]);

const isSearchEmpty = searchQueryState == "";

Expand Down
Loading