diff --git a/apps/web/src/app/(authenticated)/project/[projectId]/page.tsx b/apps/web/src/app/(authenticated)/project/[projectId]/page.tsx index 78348554..fef105bc 100644 --- a/apps/web/src/app/(authenticated)/project/[projectId]/page.tsx +++ b/apps/web/src/app/(authenticated)/project/[projectId]/page.tsx @@ -1,7 +1,7 @@ 'use client'; import Header from '@/src/components/header/header'; import Subtitle from '@/src/components/header/subtitle'; -import MyDocumentData from '@/src/components/project/myDocumentData'; +import MyDocumentData from '@/src/components/project/myFilingData'; import { Project } from '@/src/interface/project'; import { useEffect, useState } from 'react'; import getProjectByProjectId from '@/src/service/project/getProjectByProjectId'; @@ -33,10 +33,7 @@ export default function Page({ params }: { params: { projectId: string } }) { const updateLastOpenFetch = async () => { try { const userId = await getUserId(); - await updateLastOpen( - userId, - params.projectId, - ); + await updateLastOpen(userId, params.projectId); } catch (err) { if (err instanceof Error) { toast({ diff --git a/apps/web/src/components/project/allDocumentCard.tsx b/apps/web/src/components/project/allFilingCard.tsx similarity index 95% rename from apps/web/src/components/project/allDocumentCard.tsx rename to apps/web/src/components/project/allFilingCard.tsx index 1b949f99..41af511f 100644 --- a/apps/web/src/components/project/allDocumentCard.tsx +++ b/apps/web/src/components/project/allFilingCard.tsx @@ -1,8 +1,8 @@ 'use client'; import { EllipsisVertical } from 'lucide-react'; import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover.tsx'; -import PopoverEditDocument from './popoverEditDocument.tsx'; -import PopoverDeleteDocument from './popoverDeleteDocument.tsx'; +import PopoverEditDocument from './popoverEditFiling.tsx'; +import PopoverDeleteDocument from './popoverDeleteFiling.tsx'; import type { FilingStatus } from '@/src/constant/enum.ts'; import { buttonColors, TextMyProject } from '@/src/styles/enumMap'; import { useEffect, useState } from 'react'; diff --git a/apps/web/src/components/project/allDocumentPanel.tsx b/apps/web/src/components/project/allFilingPanel.tsx similarity index 98% rename from apps/web/src/components/project/allDocumentPanel.tsx rename to apps/web/src/components/project/allFilingPanel.tsx index afbbe115..7b838a2f 100644 --- a/apps/web/src/components/project/allDocumentPanel.tsx +++ b/apps/web/src/components/project/allFilingPanel.tsx @@ -1,5 +1,5 @@ 'use client'; -import AllDocumentCard from './allDocumentCard'; +import AllDocumentCard from './allFilingCard'; import SelectType from '../filter/selectType'; import { useState, useEffect, SetStateAction, Dispatch } from 'react'; import { FilingType } from '@/src/interface/filing'; diff --git a/apps/web/src/components/project/myDocumentData.tsx b/apps/web/src/components/project/myFilingData.tsx similarity index 95% rename from apps/web/src/components/project/myDocumentData.tsx rename to apps/web/src/components/project/myFilingData.tsx index 78c463e9..fc4ee0ae 100644 --- a/apps/web/src/components/project/myDocumentData.tsx +++ b/apps/web/src/components/project/myFilingData.tsx @@ -1,9 +1,9 @@ 'use client'; import SearchBar from '../searchbar/searchBar'; import { FileText } from 'lucide-react'; -import NoDocument from './noDocument'; -import AllDocumentPanel from './allDocumentPanel'; -import PopoverAddDocument from './popoverAddDocument'; +import NoDocument from './noFiling'; +import AllDocumentPanel from './allFilingPanel'; +import PopoverAddDocument from './popoverAddFiling'; import { useEffect, useState } from 'react'; import { FilingType } from '@/src/interface/filing'; import getFilingByProjectId from '@/src/service/filing/getFilingByProjectId'; diff --git a/apps/web/src/components/project/noDocument.tsx b/apps/web/src/components/project/noFiling.tsx similarity index 95% rename from apps/web/src/components/project/noDocument.tsx rename to apps/web/src/components/project/noFiling.tsx index 7550497f..1706924c 100644 --- a/apps/web/src/components/project/noDocument.tsx +++ b/apps/web/src/components/project/noFiling.tsx @@ -1,7 +1,7 @@ 'use client'; import { HiLightBulb } from 'react-icons/hi'; import { FilePlus } from 'lucide-react'; -import PopoverAddDocument from './popoverAddDocument'; +import PopoverAddDocument from './popoverAddFiling'; import { FilingType } from '@/src/interface/filing'; export default function NoDocument({ diff --git a/apps/web/src/components/project/popoverAddDocument.tsx b/apps/web/src/components/project/popoverAddFiling.tsx similarity index 100% rename from apps/web/src/components/project/popoverAddDocument.tsx rename to apps/web/src/components/project/popoverAddFiling.tsx diff --git a/apps/web/src/components/project/popoverDeleteDocument.tsx b/apps/web/src/components/project/popoverDeleteFiling.tsx similarity index 100% rename from apps/web/src/components/project/popoverDeleteDocument.tsx rename to apps/web/src/components/project/popoverDeleteFiling.tsx diff --git a/apps/web/src/components/project/popoverEditDocument.tsx b/apps/web/src/components/project/popoverEditFiling.tsx similarity index 100% rename from apps/web/src/components/project/popoverEditDocument.tsx rename to apps/web/src/components/project/popoverEditFiling.tsx