ui fixed
This commit is contained in:
@@ -167,43 +167,41 @@ export default function PatientsPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* File Upload Zone */}
|
{/* File Upload Zone */}
|
||||||
<div className="grid gap-4 md:grid-cols-4">
|
<div className="mb-8">
|
||||||
<div className="md:col-span-3">
|
<div className="flex items-center justify-between mb-4">
|
||||||
<Card>
|
<h2 className="text-xl font-medium text-gray-800">
|
||||||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
|
Upload Patient Document
|
||||||
<CardTitle className="text-sm font-medium">
|
</h2>
|
||||||
Upload Patient Document
|
|
||||||
</CardTitle>
|
|
||||||
<File className="h-4 w-4 text-muted-foreground" />
|
|
||||||
</CardHeader>
|
|
||||||
<CardContent>
|
|
||||||
<FileUploadZone
|
|
||||||
onFileUpload={handleFileUpload}
|
|
||||||
isUploading={isUploading}
|
|
||||||
acceptedFileTypes="application/pdf"
|
|
||||||
/>
|
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
</div>
|
|
||||||
<div className="md:col-span-1 flex items-end">
|
|
||||||
<Button
|
|
||||||
className="w-full h-12 gap-2"
|
|
||||||
disabled={!uploadedFile || isExtracting}
|
|
||||||
onClick={handleExtract}
|
|
||||||
>
|
|
||||||
{isExtracting ? (
|
|
||||||
<>
|
|
||||||
<RefreshCw className="h-4 w-4 animate-spin" />
|
|
||||||
Processing...
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
<FilePlus className="h-4 w-4" />
|
|
||||||
Extract Info And Claim
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
|
<Card>
|
||||||
|
<CardContent className="p-6 space-y-6">
|
||||||
|
<FileUploadZone
|
||||||
|
onFileUpload={handleFileUpload}
|
||||||
|
isUploading={isUploading}
|
||||||
|
acceptedFileTypes="application/pdf"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div className="flex justify-end gap-4">
|
||||||
|
<Button
|
||||||
|
className="w-full h-12 gap-2"
|
||||||
|
disabled={!uploadedFile || isExtracting}
|
||||||
|
onClick={handleExtract}
|
||||||
|
>
|
||||||
|
{isExtracting ? (
|
||||||
|
<>
|
||||||
|
<RefreshCw className="h-4 w-4 animate-spin" />
|
||||||
|
Processing...
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<FilePlus className="h-4 w-4" />
|
||||||
|
Extract Info And Claim
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Patients Table */}
|
{/* Patients Table */}
|
||||||
|
|||||||
Reference in New Issue
Block a user