Skip to content

Commit

Permalink
refactor: change /project component filename from document to filing
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleNa1000 committed Nov 21, 2024
1 parent 88f5572 commit 0fdfac3
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 12 deletions.
7 changes: 2 additions & 5 deletions apps/web/src/app/(authenticated)/project/[projectId]/page.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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({
Expand Down

0 comments on commit 0fdfac3

Please sign in to comment.