Skip to content

Commit

Permalink
add back button on email-code page
Browse files Browse the repository at this point in the history
  • Loading branch information
llaoj committed Mar 6, 2024
1 parent df6c29a commit e93ac72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/app/[locale]/user/email-code/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function EmailCode({
>
<div className="card-body gap-4">
<Image src="/gcopy.svg" width={50} height={50} alt="gcopy's logo" />
<div className="flex flex-col gap-0">
<div className="flex items-center">
<a
className="btn btn-ghost btn-circle btn-xs"
onClick={() => router.back()}
Expand All @@ -66,6 +66,9 @@ export default function EmailCode({
/>
</svg>
</a>
<span className="ml-1">{t("back")}</span>
</div>
<div className="flex flex-col gap-0">
<h2 className="card-title">{t("title")}</h2>
<span className="text-xs">{t("smallTitle")}</span>
</div>
Expand Down
1 change: 1 addition & 0 deletions frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"logout": "Logout"
},
"EmailCode": {
"back": "Back",
"title": "Sign in",
"smallTitle": "to continue to GCopy",
"subTitle": "Support for text, screenshots & file synchronization.",
Expand Down
1 change: 1 addition & 0 deletions frontend/messages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"logout": "登出"
},
"EmailCode": {
"back": "返回",
"title": "登录",
"smallTitle": "以使用GCopy",
"subTitle": "支持文字, 截图和文件的同步.",
Expand Down

0 comments on commit e93ac72

Please sign in to comment.