Skip to content

Commit

Permalink
Remove upload pdf modal
Browse files Browse the repository at this point in the history
  • Loading branch information
salimi-my committed Feb 2, 2024
1 parent dea5527 commit 2428aa8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 44 deletions.
12 changes: 8 additions & 4 deletions components/admin/upload-pdf-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { useState } from 'react';
import { Upload } from 'lucide-react';
import { Resume } from '@prisma/client';

import { Modal } from '@/components/ui/modal';
import { Button } from '@/components/ui/button';
import UploadPdfModal from '@/components/modals/upload-pdf-modal';
import UploadPdfForm from '@/components/admin/upload-pdf-form';

interface UploadPdfButtonProps {
resume: Resume | null;
Expand All @@ -20,11 +21,14 @@ export default function UploadPdfButton({ resume }: UploadPdfButtonProps) {
<Upload className='mr-2 h-4 w-4' />
Upload <span className='hidden sm:inline ml-1'>PDF</span>
</Button>
<UploadPdfModal
<Modal
title='Upload PDF'
description='Update and upload your latest resume in PDF format.'
isOpen={open}
onClose={() => setOpen(false)}
resume={resume}
/>
>
<UploadPdfForm onClose={() => setOpen(false)} resume={resume} />
</Modal>
</>
);
}
40 changes: 0 additions & 40 deletions components/modals/upload-pdf-modal.tsx

This file was deleted.

0 comments on commit 2428aa8

Please sign in to comment.