AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

confirm-password.tsx 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { Form, Head } from '@inertiajs/react';
  2. import InputError from '@/components/input-error';
  3. import PasswordInput from '@/components/password-input';
  4. import { Button } from '@/components/ui/button';
  5. import { Label } from '@/components/ui/label';
  6. import { Spinner } from '@/components/ui/spinner';
  7. import { store } from '@/routes/password/confirm';
  8. export default function ConfirmPassword() {
  9. return (
  10. <>
  11. <Head title="Confirm password" />
  12. <Form {...store.form()} resetOnSuccess={['password']}>
  13. {({ processing, errors }) => (
  14. <div className="space-y-6">
  15. <div className="grid gap-2">
  16. <Label htmlFor="password">Password</Label>
  17. <PasswordInput
  18. id="password"
  19. name="password"
  20. placeholder="Password"
  21. autoComplete="current-password"
  22. autoFocus
  23. />
  24. <InputError message={errors.password} />
  25. </div>
  26. <div className="flex items-center">
  27. <Button
  28. className="w-full"
  29. disabled={processing}
  30. data-test="confirm-password-button"
  31. >
  32. {processing && <Spinner />}
  33. Confirm password
  34. </Button>
  35. </div>
  36. </div>
  37. )}
  38. </Form>
  39. </>
  40. );
  41. }
  42. ConfirmPassword.layout = {
  43. title: 'Confirm password',
  44. description:
  45. 'This is a secure area of the application. Please confirm your password before continuing.',
  46. };