Skip to content

Commit

Permalink
Update password page
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Apr 10, 2023
1 parent 33d7257 commit a4256db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Setting/SettingSidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface Props {
<a
href='/settings/update-password'
class=`block w-full rounded px-2 py-1.5 font-medium text-slate-900 hover:bg-slate-200 ${pageUrl === 'change-password' ? 'bg-slate-100' : ''}`
>Change password</a
>Change Password</a
>
</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Setting/UpdatePasswordForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function UpdatePasswordForm() {
const [error, setError] = useState('');
const [success, setSuccess] = useState('');

const [isLoading, setIsLoading] = useState(false);
const [isLoading, setIsLoading] = useState(true);

const handleSubmit = async (e: Event) => {
e.preventDefault();
Expand Down Expand Up @@ -88,7 +88,7 @@ export default function UpdatePasswordForm() {
return (
<form onSubmit={handleSubmit}>
<h2 className="text-3xl font-bold sm:text-4xl">Password</h2>
<p className="mt-2">Manage settings for your account passwords</p>
<p className="mt-2">Use the form below to update your password.</p>
<div className="mt-8 space-y-4">
{authProvider === 'email' && (
<div className="flex w-full flex-col">
Expand Down

0 comments on commit a4256db

Please sign in to comment.