diff --git a/apps/web/src/app/(dashboard)/documents/page.tsx b/apps/web/src/app/(dashboard)/documents/page.tsx index f461d58e2..c36aa644d 100644 --- a/apps/web/src/app/(dashboard)/documents/page.tsx +++ b/apps/web/src/app/(dashboard)/documents/page.tsx @@ -18,6 +18,7 @@ import { } from '~/components/(dashboard)/period-selector/types'; import { DocumentStatus } from '~/components/formatter/document-status'; +import { UploadDocument } from '../dashboard/upload-document'; import { DocumentsDataTable } from './data-table'; export type DocumentsPageProps = { @@ -72,8 +73,8 @@ export default async function DocumentsPage({ searchParams = {} }: DocumentsPage return (
-

All Documents

- + +

Documents

@@ -115,16 +116,11 @@ export default async function DocumentsPage({ searchParams = {} }: DocumentsPage
- -
- {/* If we're viewing all documents for all time and there's nuffin we should should an add document component instead */} + {/* If we're viewing all documents for all time and there's nuffin we should should show an add document component instead */} {isNoResults ? ( ) : ( diff --git a/apps/web/src/components/(dashboard)/layout/desktop-nav.tsx b/apps/web/src/components/(dashboard)/layout/desktop-nav.tsx index d0927c323..279b8ea43 100644 --- a/apps/web/src/components/(dashboard)/layout/desktop-nav.tsx +++ b/apps/web/src/components/(dashboard)/layout/desktop-nav.tsx @@ -14,18 +14,8 @@ export const DesktopNav = ({ className, ...props }: DesktopNavProps) => { return ( ); diff --git a/apps/web/src/components/forms/signin.tsx b/apps/web/src/components/forms/signin.tsx index 449863e71..ae9540869 100644 --- a/apps/web/src/components/forms/signin.tsx +++ b/apps/web/src/components/forms/signin.tsx @@ -44,7 +44,7 @@ export const SignInForm = ({ className }: SignInFormProps) => { await signIn('credentials', { email, password, - callbackUrl: '/dashboard', + callbackUrl: '/documents', }).catch((err) => { console.error(err); }); diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts index 8aabb75ea..8c7405dbe 100644 --- a/apps/web/src/middleware.ts +++ b/apps/web/src/middleware.ts @@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from 'next/server'; export default async function middleware(req: NextRequest) { if (req.nextUrl.pathname === '/') { - const redirectUrl = new URL('/dashboard', req.url); + const redirectUrl = new URL('/documents', req.url); return NextResponse.redirect(redirectUrl); }