-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
75 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ export const Login = () => { | |
name="email" | ||
render={({ field }) => ( | ||
<FormItem> | ||
<FormLabel>Email</FormLabel> | ||
<FormLabel>{chrome.i18n.getMessage("email")}</FormLabel> | ||
<FormControl> | ||
<Input placeholder="[email protected]" {...field} /> | ||
</FormControl> | ||
|
@@ -66,7 +66,7 @@ export const Login = () => { | |
name="password" | ||
render={({ field }) => ( | ||
<FormItem> | ||
<FormLabel>Password</FormLabel> | ||
<FormLabel>{chrome.i18n.getMessage("password")}</FormLabel> | ||
<FormControl> | ||
<Input type="password" placeholder="••••••••" {...field} /> | ||
</FormControl> | ||
|
@@ -75,14 +75,18 @@ export const Login = () => { | |
)} | ||
/> | ||
<Button type="submit" className="w-full mt-2" disabled={isPending}> | ||
{isPending ? <Loader2 className="size-4 animate-spin" /> : "Login"} | ||
{isPending ? ( | ||
<Loader2 className="size-4 animate-spin" /> | ||
) : ( | ||
chrome.i18n.getMessage("login") | ||
)} | ||
</Button> | ||
</form> | ||
|
||
<div className="mt-4 text-center text-sm"> | ||
Don't have an account?{" "} | ||
{chrome.i18n.getMessage("dontHaveAccount")}{" "} | ||
<a href="/tabs/register.html" className="underline hover:no-underline"> | ||
Sign up | ||
{chrome.i18n.getMessage("register")} | ||
</a> | ||
</div> | ||
</Form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ export const Register = () => { | |
name="name" | ||
render={({ field }) => ( | ||
<FormItem> | ||
<FormLabel>Name</FormLabel> | ||
<FormLabel>{chrome.i18n.getMessage("name")}</FormLabel> | ||
<FormControl> | ||
<Input placeholder="John Doe" {...field} /> | ||
</FormControl> | ||
|
@@ -67,7 +67,7 @@ export const Register = () => { | |
name="email" | ||
render={({ field }) => ( | ||
<FormItem> | ||
<FormLabel>Email</FormLabel> | ||
<FormLabel>{chrome.i18n.getMessage("email")}</FormLabel> | ||
<FormControl> | ||
<Input placeholder="[email protected]" {...field} /> | ||
</FormControl> | ||
|
@@ -81,7 +81,7 @@ export const Register = () => { | |
name="password" | ||
render={({ field }) => ( | ||
<FormItem> | ||
<FormLabel>Password</FormLabel> | ||
<FormLabel>{chrome.i18n.getMessage("password")}</FormLabel> | ||
<FormControl> | ||
<Input type="password" placeholder="••••••••" {...field} /> | ||
</FormControl> | ||
|
@@ -90,14 +90,18 @@ export const Register = () => { | |
)} | ||
/> | ||
<Button type="submit" className="w-full mt-2" disabled={isPending}> | ||
{isPending ? <Loader2 className="size-4 animate-spin" /> : "Register"} | ||
{isPending ? ( | ||
<Loader2 className="size-4 animate-spin" /> | ||
) : ( | ||
chrome.i18n.getMessage("register") | ||
)} | ||
</Button> | ||
</form> | ||
|
||
<div className="mt-4 text-center text-sm"> | ||
Already have an account?{" "} | ||
{chrome.i18n.getMessage("alreadyHaveAccount")}{" "} | ||
<a href="/tabs/login.html" className="underline hover:no-underline"> | ||
Sign in | ||
{chrome.i18n.getMessage("login")} | ||
</a> | ||
</div> | ||
</Form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters