Skip to content

Commit 61513e4

Browse files
committed
refactor: move pages to new modules
1 parent 2b1e07f commit 61513e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2105
-7562
lines changed

apps/jobboard-frontend/src/pages/JobApplicationPage.tsx renamed to apps/jobboard-frontend/src/modules/applications/pages/JobApplicationPage.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { useParams, useNavigate, Link } from 'react-router-dom';
33
import { useTranslation } from 'react-i18next';
44
import { toast } from 'react-toastify';
55
import { ChevronRight, Upload, X, FileText } from 'lucide-react';
6-
import { Button } from '@/components/ui/button';
7-
import { Card } from '@/components/ui/card';
8-
import { Label } from '@/components/ui/label';
9-
import CenteredLoader from '@/components/CenteredLoader';
10-
import { cn } from '@/lib/utils';
11-
import type { JobPostResponse } from '@/types/api.types';
12-
import { getJobById } from '@/services/jobs.service';
13-
import { createApplication, uploadCv, getApplicationsByJobSeeker } from '@/services/applications.service';
14-
import { useAuth } from '@/contexts/AuthContext';
6+
import { Button } from '@shared/components/ui/button';
7+
import { Card } from '@shared/components/ui/card';
8+
import { Label } from '@shared/components/ui/label';
9+
import CenteredLoader from '@shared/components/common/CenteredLoader';
10+
import { cn } from '@shared/lib/utils';
11+
import type { JobPostResponse } from '@shared/types/api.types';
12+
import { getJobById } from '@modules/jobs/services/jobs.service';
13+
import { createApplication, uploadCv, getApplicationsByJobSeeker } from '@modules/applications/services/applications.service';
14+
import { useAuth } from '@shared/contexts/AuthContext';
1515

1616
const MAX_FILE_SIZE = 10 * 1024 * 1024; // 10MB
1717
const ALLOWED_FILE_TYPES = ['application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'];

apps/jobboard-frontend/src/pages/JobApplicationReviewPage.tsx renamed to apps/jobboard-frontend/src/modules/applications/pages/JobApplicationReviewPage.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { useState, useEffect } from 'react';
22
import { useParams, useNavigate, Link } from 'react-router-dom';
33
import { toast } from 'react-toastify';
44
import { Download, FileText } from 'lucide-react';
5-
import { Button } from '@/components/ui/button';
6-
import { Card } from '@/components/ui/card';
7-
import { Avatar, AvatarFallback } from '@/components/ui/avatar';
8-
import { Label } from '@/components/ui/label';
9-
import { getApplicationById, approveApplication, rejectApplication, getCvUrl } from '@/services/applications.service';
10-
import type { JobApplicationResponse } from '@/types/api.types';
11-
import CenteredLoader from '@/components/CenteredLoader';
5+
import { Button } from '@shared/components/ui/button';
6+
import { Card } from '@shared/components/ui/card';
7+
import { Avatar, AvatarFallback } from '@shared/components/ui/avatar';
8+
import { Label } from '@shared/components/ui/label';
9+
import { getApplicationById, approveApplication, rejectApplication, getCvUrl } from '@modules/applications/services/applications.service';
10+
import type { JobApplicationResponse } from '@shared/types/api.types';
11+
import CenteredLoader from '@shared/components/common/CenteredLoader';
1212

1313
import { useTranslation } from 'react-i18next';
1414

0 commit comments

Comments
 (0)