1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-28 01:10:52 +01:00

Update DonateButton and LogArea components

This commit is contained in:
Nayam Amarshe 2024-01-31 16:50:46 +05:30
parent 75d0bee853
commit 06f6c24b4b
3 changed files with 10 additions and 6 deletions

View File

@ -7,7 +7,7 @@ export function DonateButton({}) {
href="https://buymeacoffee.com/fossisthefuture" href="https://buymeacoffee.com/fossisthefuture"
target="_blank" target="_blank"
className="btn-primary btn"> className="btn-primary btn">
Donate DONATE
</a> </a>
</div> </div>
); );

View File

@ -16,7 +16,7 @@ export function LogArea({
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<p className="text-sm font-medium">LOGS</p> <p className="text-sm font-medium">LOGS</p>
<button className="btn-primary btn-xs btn" onClick={copyOnClickHandler}> <button className="btn-primary btn-xs btn" onClick={copyOnClickHandler}>
{isCopied ? <span>Copied </span> : <span>Copy Logs 📋</span>} {isCopied ? <span>COPIED </span> : <span>COPY LOGS 📋</span>}
</button> </button>
</div> </div>
<code className="rounded-btn rounded-r-none relative flex h-52 max-h-52 flex-col gap-3 overflow-y-auto break-all bg-base-200 p-4 text-xs"> <code className="rounded-btn rounded-r-none relative flex h-52 max-h-52 flex-col gap-3 overflow-y-auto break-all bg-base-200 p-4 text-xs">

View File

@ -166,22 +166,26 @@ function SettingsTab({
}, 2000); }, 2000);
}; };
const upscaylVersion = navigator?.userAgent?.match(
/Upscayl\/([\d\.]+\d+)/
)[1];
return ( return (
<div className="animate-step-in animate flex h-screen flex-col gap-7 overflow-y-auto p-5 overflow-x-hidden"> <div className="animate-step-in animate flex h-screen flex-col gap-7 overflow-y-auto p-5 overflow-x-hidden">
<div className="flex flex-col gap-2 text-sm font-medium"> <div className="flex flex-col gap-2 text-sm font-medium uppercase">
<p>Having issues?</p> <p>Having issues?</p>
<a <a
className="btn-primary btn" className="btn-primary btn"
href="https://github.com/upscayl/upscayl/wiki/" href="https://github.com/upscayl/upscayl/wiki/"
target="_blank"> target="_blank">
Read Wiki Guide HELP ME!
</a> </a>
{featureFlags.APP_STORE_BUILD && ( {featureFlags.APP_STORE_BUILD && (
<a <a
className="btn-primary btn" className="btn-primary btn"
href="mailto:nayam.emikx@aleeas.com?subject=Upscayl%20Issue:%20&body=Describe%20your%20issue%20here." href={`mailto:upscayl@gmail.com?subject=Upscayl%20Issue%3A%20%3CIssue%20name%20here%3E&body=Device%20Name%3A%20%3CYOUR%20DEVICE%20MODEL%3E%0AOperating%20System%3A%20%3CYOUR%20OPERATING%20SYSTEM%20VERSION%3E%0AUpscayl%20Version%3A%20${upscaylVersion}%0A%0AHi%2C%20I'm%20having%20an%20issue%20with%20Upscayl.%20%3CDESCRIBE%20ISSUE%20HERE%3E`}
target="_blank"> target="_blank">
Email Developer EMAIL DEVELOPER
</a> </a>
)} )}
{!featureFlags.APP_STORE_BUILD && <DonateButton />} {!featureFlags.APP_STORE_BUILD && <DonateButton />}