mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-04-19 13:37:31 -05:00
Move "publish" to be first action
This commit is contained in:
parent
67bd57455b
commit
94f52c836a
|
|
@ -450,15 +450,6 @@ export default function VersionActions({
|
|||
<>
|
||||
{/* Desktop: Show buttons */}
|
||||
<div className="hidden sm:flex flex-wrap gap-1.5">
|
||||
<button
|
||||
onClick={handleDownload}
|
||||
className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-2 py-1 text-xs font-medium hover:bg-[var(--surface-3)] transition-colors"
|
||||
title="Download"
|
||||
>
|
||||
<FaDownload size={12} />
|
||||
Download
|
||||
</button>
|
||||
|
||||
{!patch.published && (
|
||||
<button
|
||||
onClick={() => setShowPublishModal(true)}
|
||||
|
|
@ -470,6 +461,15 @@ export default function VersionActions({
|
|||
</button>
|
||||
)}
|
||||
|
||||
<button
|
||||
onClick={handleDownload}
|
||||
className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-2 py-1 text-xs font-medium hover:bg-[var(--surface-3)] transition-colors"
|
||||
title="Download"
|
||||
>
|
||||
<FaDownload size={12} />
|
||||
Download
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={() => setShowReuploadModal(true)}
|
||||
className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-2 py-1 text-xs font-medium hover:bg-[var(--surface-3)] transition-colors"
|
||||
|
|
@ -515,15 +515,6 @@ export default function VersionActions({
|
|||
transition
|
||||
className="absolute right-0 z-10 mt-2 w-48 origin-top-right overflow-hidden rounded-md border border-[var(--border)] bg-[var(--surface-2)] backdrop-blur-lg shadow-lg focus:outline-none transition data-closed:scale-95 data-closed:transform data-closed:opacity-0 data-enter:duration-100 data-enter:ease-out data-leave:duration-75 data-leave:ease-in"
|
||||
>
|
||||
<MenuItem
|
||||
as="button"
|
||||
onClick={handleDownload}
|
||||
className="flex w-full items-center gap-3 px-3 py-2 text-left text-sm data-focus:bg-black/5 dark:data-focus:bg-white/10"
|
||||
>
|
||||
<FaDownload size={14} />
|
||||
Download
|
||||
</MenuItem>
|
||||
|
||||
{!patch.published && (
|
||||
<MenuItem
|
||||
as="button"
|
||||
|
|
@ -535,6 +526,15 @@ export default function VersionActions({
|
|||
</MenuItem>
|
||||
)}
|
||||
|
||||
<MenuItem
|
||||
as="button"
|
||||
onClick={handleDownload}
|
||||
className="flex w-full items-center gap-3 px-3 py-2 text-left text-sm data-focus:bg-black/5 dark:data-focus:bg-white/10"
|
||||
>
|
||||
<FaDownload size={14} />
|
||||
Download
|
||||
</MenuItem>
|
||||
|
||||
<MenuItem
|
||||
as="button"
|
||||
onClick={() => setShowReuploadModal(true)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user