build(deps): add react-router-dom
Install react-router-dom to support client-side navigation. This is a prerequisite for implementing the multi-step authentication flow and other routed features. Additionally, this commit includes minor copy improvements to the password reset forms for better clarity.
This commit is contained in:
@@ -101,7 +101,7 @@ const ForgotPasswordForm = ({ showLogin, showReset }) => {
|
||||
{success && <p className="text-sm text-green-400 text-center">{success}</p>}
|
||||
<div>
|
||||
<button type="submit" disabled={loading || !isFormValid} className="group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm font-bold rounded-md text-white bg-brand-orange hover:bg-opacity-90 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-brand-orange focus:ring-offset-gray-800 disabled:opacity-60">
|
||||
{loading ? 'Sending...' : 'Reset Password'}
|
||||
{loading ? 'Sending...' : 'Send Reset Link'}
|
||||
</button>
|
||||
</div>
|
||||
<p className="text-center text-sm text-gray-300">
|
||||
|
||||
@@ -22,7 +22,7 @@ const ResetPasswordForm = ({ showLogin }) => {
|
||||
try {
|
||||
// Assuming you have a webhook for resetting the password
|
||||
await axios.post('https://api.karyamanswasta.my.id/webhook/forgot-password/adventure', { token, newPassword });
|
||||
setSuccess('Password has been sent successfully!');
|
||||
setSuccess('Password has been reset successfully!');
|
||||
setTimeout(() => {
|
||||
showLogin();
|
||||
}, 2000);
|
||||
|
||||
Reference in New Issue
Block a user