Fix url input type for vendor assessement
This commit is contained in:
@@ -2686,12 +2686,18 @@ function VendorViewContent({
|
||||
<DialogHeader>
|
||||
<DialogTitle>Assessement From Website</DialogTitle>
|
||||
</DialogHeader>
|
||||
<form onSubmit={(e) => {
|
||||
e.preventDefault();
|
||||
handleAssessVendor();
|
||||
}}>
|
||||
<div className="space-y-4">
|
||||
<Input
|
||||
placeholder="Enter website URL"
|
||||
type="url"
|
||||
placeholder="https://www.example.com"
|
||||
value={websiteUrl}
|
||||
onChange={(e) => setWebsiteUrl(e.target.value)}
|
||||
disabled={isInFlight}
|
||||
required
|
||||
/>
|
||||
{isInFlight && (
|
||||
<div className="flex items-center justify-center text-sm text-[#6B716A]">
|
||||
@@ -2719,8 +2725,9 @@ function VendorViewContent({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex justify-end gap-2">
|
||||
<div className="flex justify-end gap-2 mt-4">
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
onClick={() => setIsAssessDialogOpen(false)}
|
||||
disabled={isInFlight}
|
||||
@@ -2728,13 +2735,14 @@ function VendorViewContent({
|
||||
Cancel
|
||||
</Button>
|
||||
<Button
|
||||
onClick={handleAssessVendor}
|
||||
type="submit"
|
||||
disabled={isInFlight}
|
||||
className={isInFlight ? "opacity-50 cursor-not-allowed" : ""}
|
||||
>
|
||||
{isInFlight ? "Processing..." : "Assess"}
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</PageTemplate>
|
||||
|
||||
Reference in New Issue
Block a user