Update UserProfile.tsx

Clicking badges that can redirect to a relevant page will do so.

Clicking Supporter will direct to donate page
Clicking Translator will direct to weblate
This commit is contained in:
Ryan Alexander 2021-08-16 00:09:16 +10:00 committed by GitHub
parent ff9545ba2f
commit 6938deb568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -315,7 +315,11 @@ export const UserProfile = observer(
content={ content={
<Text id="app.special.popovers.user_profile.badges.translator" /> <Text id="app.special.popovers.user_profile.badges.translator" />
}> }>
<img src="/assets/badges/translator.svg" /> <img src="/assets/badges/translator.svg"
onClick={() => {
window.open("https://weblate.insrt.uk/projects/revolt/web-app/", "_blank")
}}
/>
</Tooltip> </Tooltip>
) : ( ) : (
<></> <></>
@ -338,6 +342,9 @@ export const UserProfile = observer(
<Money <Money
size={32} size={32}
color="#efab44" color="#efab44"
onClick={() => {
window.open("https://insrt.uk/donate", "_blank")
}}
/> />
</Tooltip> </Tooltip>
) : ( ) : (