Skip to content

Commit 3206cb2

Browse files
authored
chore: change github links (#26)
1 parent 3c29e80 commit 3206cb2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

config/links.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"github": "https://github.com/zly201"
2+
"github-repo": "https://github.com/typescript-tutorial-exercises/core",
3+
"github-zly201": "https://github.com/zly201"
34
}

src/modules/Footer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styles from './index.module.less';
44
const Footer = function () {
55
return (
66
<div className={styles.container}>
7-
<a href={linkJson.github} target={'_blank'} rel="noreferrer">
7+
<a href={linkJson['github-zly201']} target={'_blank'} rel="noreferrer">
88
copyright © 2023-Present ZLY201
99
</a>
1010
</div>

src/modules/Header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Header = function () {
3737
<a
3838
style={{ color: 'inherit' }}
3939
className={styles.icon}
40-
href={linkJson.github}
40+
href={linkJson['github-repo']}
4141
target={'_blank'}
4242
rel="noreferrer"
4343
>

src/modules/Question/Description.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ const Description = function () {
2727
const {
2828
key,
2929
title,
30-
contributor: { name, link } = { name: 'ZLY201', link: linkJson.github },
30+
contributor: { name, link } = {
31+
name: 'ZLY201',
32+
link: linkJson['github-zly201'],
33+
},
3134
cases = [NULL_CASE],
3235
} = currentProblem;
3336
const [desc, setDesc] = useState('');

0 commit comments

Comments
 (0)