Skip to content

Commit

Permalink
Made download button more visible (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
loviuz authored Nov 28, 2024
1 parent 45f6fca commit 0fade05
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions client/routes/secret/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,22 @@ const Secret = () => {
</button>
)}

{/* File Download Buttons */}
{files?.length > 0 &&
files.map((file) => (
<button
key={file.key}
onClick={() => onFileDownload(file)}
disabled={isDownloaded.some((key) => key === file.key)}
className="flex items-center gap-2 px-4 py-2 bg-hemmelig text-white
hover:bg-hemmelig-700 rounded-md transition-colors
disabled:opacity-50 disabled:cursor-not-allowed"
>
<IconDownload size={14} />
{'hemmelig_files' + file.ext}
</button>
))}

{/* Convert Base64 Button */}
{isSecretOpen && (
<button
Expand All @@ -273,22 +289,6 @@ const Secret = () => {
{t('secret.create_secret')}
</Link>
)}

{/* File Download Buttons */}
{files?.length > 0 &&
files.map((file) => (
<button
key={file.key}
onClick={() => onFileDownload(file)}
disabled={isDownloaded.some((key) => key === file.key)}
className="flex items-center gap-2 px-4 py-2 bg-gray-800 text-gray-300
hover:bg-gray-700 hover:text-white rounded-md transition-colors
disabled:opacity-50 disabled:cursor-not-allowed"
>
<IconDownload size={14} />
{'hemmelig_files' + file.ext}
</button>
))}
</div>
</div>
</div>
Expand Down

0 comments on commit 0fade05

Please sign in to comment.