Update PrivacyLinks to use new attributes.

This commit is contained in:
Bauke 2022-03-17 19:55:54 +01:00
parent 75cbdcfb75
commit f9ebb80db7
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 8 additions and 6 deletions

View File

@ -12,16 +12,18 @@ export class PageFooter extends Component<Props> {
const {manifest} = this.props; const {manifest} = this.props;
const version = manifest.version; const version = manifest.version;
const donateLinkAttributes = {
href: 'https://github.com/sponsors/Bauke',
};
const donateLink = html` const donateLink = html`
<${PrivacyLink} href="https://github.com/sponsors/Bauke">Donate<//> <${PrivacyLink} attributes=${donateLinkAttributes}>Donate<//>
`; `;
const versionLinkAttributes = {
href: `https://github.com/Holllo/fangs/releases/tag/${version}`,
};
const versionLink = html` const versionLink = html`
<${PrivacyLink} <${PrivacyLink} attributes=${versionLinkAttributes}>v${version}<//>
href="https://github.com/Holllo/fangs/releases/tag/${version}"
>
v${version}
<//>
`; `;
return html` return html`