Skip to content

Commit

Permalink
fix:minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Paribesh01 committed Oct 27, 2024
1 parent 709ddfb commit 6cfb34c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/DeleteDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Button } from './ui/button';
import { useToast } from './ui/use-toast';
import { toggleDeleteJobById } from '@/actions/job.action';
import { JobType } from '@/types/jobs.types';
import icons from '@/lib/icons';
import {
Dialog,
DialogTrigger,
Expand All @@ -13,7 +14,6 @@ import {
DialogDescription,
DialogFooter,
} from './ui/dialog';
import { ArchiveRestore, Trash2 } from 'lucide-react';

const JobDialog = ({ job }: { job: JobType }) => {
const [dialogOpen, setDialogOpen] = useState(false); // State to manage dialog visibility
Expand Down Expand Up @@ -43,7 +43,7 @@ const JobDialog = ({ job }: { job: JobType }) => {
onClick={() => setDialogOpen(true)}
>
<Button variant="ghost" size="icon">
<ArchiveRestore className="h-7 w-5 text-green-500" />
<icons.ArchiveRestore className="h-7 w-5 text-green-500" />
</Button>
</span>
) : (
Expand All @@ -53,7 +53,7 @@ const JobDialog = ({ job }: { job: JobType }) => {
onClick={() => setDialogOpen(true)}
>
<Button variant="ghost" size="icon">
<Trash2 className="h-7 w-5 text-red-500" />
<icons.trash className="h-7 w-5 text-red-500" />
</Button>
</span>
)}
Expand Down
4 changes: 4 additions & 0 deletions src/lib/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
Menu,
Sparkles,
Copyright,
ArchiveRestore,
Sun,
Moon,
type Icon as LucideIconType,
Expand All @@ -23,6 +24,7 @@ import {
DollarSign,
BookText,
User,
Trash2,
LogOut,
SlidersHorizontal,
AlertCircle,
Expand All @@ -41,6 +43,8 @@ const icons = {
loading: FaSpinner,
copyright: Copyright,
sun: Sun,
ArchiveRestore: ArchiveRestore,
trash: Trash2,
moon: Moon,
check: Check,
'chevron-right': ChevronRight,
Expand Down

0 comments on commit 6cfb34c

Please sign in to comment.