Skip to content

Commit

Permalink
chore: change github links (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLY201 committed Nov 4, 2023
1 parent 3c29e80 commit 3206cb2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config/links.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"github": "https://github.com/zly201"
"github-repo": "https://github.com/typescript-tutorial-exercises/core",
"github-zly201": "https://github.com/zly201"
}
2 changes: 1 addition & 1 deletion src/modules/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styles from './index.module.less';
const Footer = function () {
return (
<div className={styles.container}>
<a href={linkJson.github} target={'_blank'} rel="noreferrer">
<a href={linkJson['github-zly201']} target={'_blank'} rel="noreferrer">
copyright © 2023-Present ZLY201
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Header = function () {
<a
style={{ color: 'inherit' }}
className={styles.icon}
href={linkJson.github}
href={linkJson['github-repo']}
target={'_blank'}
rel="noreferrer"
>
Expand Down
5 changes: 4 additions & 1 deletion src/modules/Question/Description.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ const Description = function () {
const {
key,
title,
contributor: { name, link } = { name: 'ZLY201', link: linkJson.github },
contributor: { name, link } = {
name: 'ZLY201',
link: linkJson['github-zly201'],
},
cases = [NULL_CASE],
} = currentProblem;
const [desc, setDesc] = useState('');
Expand Down

0 comments on commit 3206cb2

Please sign in to comment.