Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -1556,11 +1556,11 @@
"message": "GitHub"
},
"home.hero.tag.email": {
"message": "Email, click to copy"
},
"home.hero.tag.emailName": {
"message": "Email"
},
"home.hero.tag.emailHint": {
"message": "Click to copy the email address"
},
"home.hero.tag.copied": {
"message": "Copied ✓"
},
Expand Down
4 changes: 3 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function HeroTags(): JSX.Element {
label: string;
icon: string;
href?: string;
hint?: string;
onClick?: () => void;
}> = [
{
Expand All @@ -110,6 +111,7 @@ function HeroTags(): JSX.Element {
? translate({ id: 'home.hero.tag.copied', message: '已复制 ✓' })
: translate({ id: 'home.hero.tag.email', message: '邮箱' }),
icon: MAIL_ICON,
hint: translate({ id: 'home.hero.tag.emailHint', message: '点击复制邮箱地址' }),
onClick: () => void copyEmail(),
},
{
Expand Down Expand Up @@ -164,7 +166,7 @@ function HeroTags(): JSX.Element {
}
return (
<button key={tag.key} role="listitem" type="button" className={styles.heroTag} style={style}
onClick={tag.onClick}>
title={tag.hint} onClick={tag.onClick}>
{inner}
</button>
);
Expand Down
Loading