Have a single place to define the repo url

This commit is contained in:
Misode
2025-01-04 19:05:23 +01:00
parent 0b73a6056a
commit 55dc606ddc
4 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { useLocale } from '../contexts/index.js'
import { SOURCE_REPO_URL } from '../Utils.js'
import { Octicon } from './index.js'
interface Props {
@@ -17,7 +18,7 @@ export function Footer({ donate }: Props) {
</p>}
<p>
{Octicon.mark_github}
<span>{locale('source_code_on')} <a href="https://github.com/misode/misode.github.io" target="_blank" rel="noreferrer">{locale('github')}</a></span>
<span>{locale('source_code_on')} <a href={SOURCE_REPO_URL} target="_blank" rel="noreferrer">{locale('github')}</a></span>
</p>
</footer>
}