Merge branch 'quick-links' of WrenchBoard/Users-Wrench into master

This commit is contained in:
2024-03-30 23:47:37 +00:00
committed by Gogs
2 changed files with 46 additions and 42 deletions
+40 -40
View File
@@ -398,7 +398,7 @@ function ActiveJobsMedia(props) {
</div>
</div>
<div className="w-full lg:w-2/5 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-1">
<div className="w-full lg:w-2/5 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-1 gap-4">
{/* TEXTAREA SECTION */}
<div className="w-full mb-3">
<div className="w-full">
@@ -496,51 +496,51 @@ function ActiveJobsMedia(props) {
{/* Buttons Sections */}
<div className="py-1 sm:flex sm:justify-end sm:items-center">
<div className="w-full flex justify-between items-center space-x-2">
<button
type="button"
onClick={handleClearAll}
className="custom-btn border-gradient"
>
<span className="text-gradient">Clear</span>
</button>
{tab == "files" ? (
<div className="w-full flex justify-center items-center gap-4">
<button
onClick={sendFile}
type="button"
className="custom-btn btn-gradient text-white"
type="button"
onClick={handleClearAll}
className="custom-btn border-gradient"
>
{requestStatus.loading ? (
<LoadingSpinner size="6" color="sky-blue" />
) : (
<>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="20"
height="20"
fill="white"
<span className="text-gradient">Clear</span>
</button>
{tab == "files" ? (
<button
onClick={sendFile}
type="button"
className="custom-btn btn-gradient text-white"
>
<path d="M12 2L2 12h3v8h14v-8h3L12 2zm0 16v-6h-2v6H7l5-5 5 5h-3z" />
</svg>
{requestStatus.loading ? (
<LoadingSpinner size="6" color="sky-blue" />
) : (
<>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="20"
height="20"
fill="white"
>
<path d="M12 2L2 12h3v8h14v-8h3L12 2zm0 16v-6h-2v6H7l5-5 5 5h-3z" />
</svg>
<span className="text-white">Upload Files</span>
</>
)}
</button>
) : (
<button
onClick={sendTaskMessage}
type="button"
className="custom-btn btn-gradient text-white"
>
{requestStatus.loading ? (
<LoadingSpinner size="6" color="sky-blue" />
<span className="text-white">Upload Files</span>
</>
)}
</button>
) : (
<span className="text-white">Send</span>
<button
onClick={sendTaskMessage}
type="button"
className="custom-btn btn-gradient text-white"
>
{requestStatus.loading ? (
<LoadingSpinner size="6" color="sky-blue" />
) : (
<span className="text-white">Send</span>
)}
</button>
)}
</button>
)}
</div>
</div>
{/* end of Buttons Sections */}