🍙 New button style with gradient

This commit is contained in:
Shiba 2022-07-01 20:37:03 +00:00
parent 066c400cce
commit 0ba4efd43e
2 changed files with 10 additions and 5 deletions

View file

@ -68,11 +68,14 @@ function WatchOnLbryPopup(params: { profile: Awaited<ReturnType<typeof getProfil
<a onClick={() => loads(generateProfileAndSetNickname(dialogManager)).then(() => renderPopup())} className={`button active`}> <a onClick={() => loads(generateProfileAndSetNickname(dialogManager)).then(() => renderPopup())} className={`button active`}>
Change Nickname Change Nickname
</a> </a>
<a onClick={async () => <a onClick={async () => {
await dialogManager.confirm("This will delete your keypair from this device.\nStill wanna continue?\n\nNOTE: Without keypair you can't purge your data online.\nSo if you wish to purge, please use purging instead.") if (!await dialogManager.confirm("This will delete your keypair from this device."
&& resetProfileSettings() + "\nStill wanna continue?"
&& renderPopup() + "\n\nNOTE: Without keypair you can't purge your data online."
} + "\nSo if you wish to purge, please use purging instead.")) return
resetProfileSettings()
renderPopup()
}}
className={`button`} className={`button`}
> >
Forget/Logout Forget/Logout

View file

@ -32,6 +32,8 @@ function WatchOnLbryButton({ targetPlatform, lbryPathname, time }: WatchOnLbryBu
gap: '12px', gap: '12px',
borderRadius: '2px', borderRadius: '2px',
backgroundColor: targetPlatform.theme, backgroundColor: targetPlatform.theme,
backgroundImage: targetPlatform.theme,
fontWeight: 'bold',
border: '0', border: '0',
color: 'whitesmoke', color: 'whitesmoke',
padding: '10px 16px', padding: '10px 16px',