added save as draft button
This commit is contained in:
parent
73fe26edc4
commit
ec1eca181f
@ -1914,15 +1914,23 @@ const location = useLocation();
|
|||||||
</svg>
|
</svg>
|
||||||
<span>Back</span>
|
<span>Back</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<div className="flex gap-3">
|
||||||
onClick={handleNext}
|
<button
|
||||||
className="inline-flex items-center gap-2 h-9 px-5 rounded-md bg-[#92722A] text-white hover:bg-[#7b5c1f] cursor-pointer"
|
type="button"
|
||||||
>
|
className="inline-flex items-center gap-2 h-9 px-5 rounded-md border border-[#92722A] text-[#92722A] bg-transparent hover:bg-[#92722A]/10 cursor-pointer"
|
||||||
<span>Next</span>
|
>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
<span>Save as Draft</span>
|
||||||
<path strokeLinecap="round" strokeLinejoin="round" d="M9 5l7 7-7 7" />
|
</button>
|
||||||
</svg>
|
<button
|
||||||
</button>
|
onClick={handleNext}
|
||||||
|
className="inline-flex items-center gap-2 h-9 px-5 rounded-md bg-[#92722A] text-white hover:bg-[#7b5c1f] cursor-pointer"
|
||||||
|
>
|
||||||
|
<span>Next</span>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
||||||
|
<path strokeLinecap="round" strokeLinejoin="round" d="M9 5l7 7-7 7" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{(hasError || isInitialLoad) && (
|
{(hasError || isInitialLoad) && (
|
||||||
|
|||||||
@ -1042,17 +1042,25 @@ const ReviewSubmit = ({
|
|||||||
<img src={caretDownSrc} alt="" className="h-4 w-4 rotate-90" />
|
<img src={caretDownSrc} alt="" className="h-4 w-4 rotate-90" />
|
||||||
<span>Back</span>
|
<span>Back</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<div className="flex gap-3">
|
||||||
disabled={!confirm || isSubmitting}
|
<button
|
||||||
onClick={onSubmit}
|
type="button"
|
||||||
className={`inline-flex items-center justify-center h-9 px-5 rounded-md transition-colors ${
|
className="inline-flex items-center justify-center h-9 px-5 rounded-md border border-[#92722A] text-[#92722A] bg-transparent hover:bg-[#92722A]/10 transition-colors"
|
||||||
!confirm || isSubmitting
|
>
|
||||||
? 'bg-gray-200 text-gray-400 cursor-not-allowed'
|
<span>Save as Draft</span>
|
||||||
: 'bg-[#92722A] text-white hover:bg-[#7b5c1f]'
|
</button>
|
||||||
}`}
|
<button
|
||||||
>
|
disabled={!confirm || isSubmitting}
|
||||||
<span>{submitButtonText}</span>
|
onClick={onSubmit}
|
||||||
</button>
|
className={`inline-flex items-center justify-center h-9 px-5 rounded-md transition-colors ${
|
||||||
|
!confirm || isSubmitting
|
||||||
|
? 'bg-gray-200 text-gray-400 cursor-not-allowed'
|
||||||
|
: 'bg-[#92722A] text-white hover:bg-[#7b5c1f]'
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
<span>{submitButtonText}</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user