Skip to content

Commit 892f91a

Browse files
committed
fixed incorrect import
1 parent b826b8b commit 892f91a

File tree

24 files changed

+92
-77
lines changed

24 files changed

+92
-77
lines changed

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { withSentryConfig } from '@sentry/nextjs';
2+
23
/**
34
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
45
* for Docker builds.

package-lock.json

Lines changed: 35 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@emotion/react": "^11.14.0",
2020
"@emotion/styled": "^11.14.1",
2121
"@hookform/resolvers": "^3.3.2",
22+
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
2223
"@mui/icons-material": "^7.3.1",
2324
"@mui/material": "^7.3.1",
2425
"@mui/material-nextjs": "^7.3.0",
@@ -45,7 +46,6 @@
4546
"next": "^15.4.10",
4647
"next-auth": "^4.24.11",
4748
"postgres": "^3.3.5",
48-
"prettier-plugin-sort-imports": "^1.8.9",
4949
"react": "^18.2.0",
5050
"react-day-picker": "^8.9.1",
5151
"react-dom": "^18.2.0",

src/app/api/auth/[...nextauth]/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import NextAuth from 'next-auth';
2-
32
import { authOptions } from '@src/server/auth';
43

54
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment

src/app/api/files/upload/route.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { NextResponse } from 'next/server';
2-
import { db } from '@src/server/db';
3-
import { file } from '@src/server/db/schema/file';
4-
import { and, eq } from 'drizzle-orm';
5-
import { getServerAuthSession } from '@src/server/auth';
61
import fs from 'fs';
72
import path from 'path';
8-
3+
import { and, eq } from 'drizzle-orm';
4+
import { NextResponse } from 'next/server';
95
import { z } from 'zod';
6+
import { getServerAuthSession } from '@src/server/auth';
7+
import { db } from '@src/server/db';
8+
import { file } from '@src/server/db/schema/file';
109

1110
const allowedTypes = ['image/png', 'image/jpeg', 'application/pdf'];
1211

src/app/api/reports/route.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
import { NextResponse } from 'next/server'; // Used to send HTTP responses (JSON, status codes)
55
import { z } from 'zod'; // Zod validates and parses input data
66

7+
// Import session helper to check if a user is logged in
8+
import { getServerAuthSession } from '@src/server/auth';
79
// Import database connection and the "report" table schema
810
import { db } from '@src/server/db';
911
import { report } from '@src/server/db/schema/reports';
1012

11-
// Import session helper to check if a user is logged in
12-
import { getServerAuthSession } from '@src/server/auth';
13-
1413
// This ensures the API only accepts the correct fields
1514
const CreateReportSchema = z.object({
1615
fileId: z.string().min(1),

src/app/layout.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import '@src/styles/globals.css';
2-
3-
import { ThemeProvider } from '@mui/material/styles';
42
import { AppRouterCacheProvider } from '@mui/material-nextjs/v15-appRouter';
5-
import { Bai_Jamjuree, Inter } from 'next/font/google';
6-
import { type Metadata } from 'next';
3+
import { ThemeProvider } from '@mui/material/styles';
74
import { GoogleAnalytics } from '@next/third-parties/google';
5+
import { type Metadata } from 'next';
6+
import { Bai_Jamjuree, Inter } from 'next/font/google';
87
import Link from 'next/link';
9-
10-
import theme from '@src/utils/theme';
118
import { ToastProvider } from '@src/components/toast/ToastProvider';
9+
import theme from '@src/utils/theme';
1210

1311
const inter = Inter({
1412
subsets: ['latin'],

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Metadata } from 'next';
21
import NavBar from '@components/NavBar';
2+
import type { Metadata } from 'next';
33

44
export const metadata: Metadata = {
55
alternates: {

src/components/NavBar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React from 'react';
2-
import Link from 'next/link';
3-
import Image from 'next/image';
41
import { IconButton, Tooltip } from '@mui/material';
2+
import Image from 'next/image';
3+
import Link from 'next/link';
4+
import React from 'react';
55

66
export default function NavBar() {
77
return (

src/components/toast/ToastProvider.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use client';
2+
23
import React, {
34
createContext,
45
useCallback,

0 commit comments

Comments
 (0)