Skip to content

Commit

Permalink
React formatting (laravel#214)
Browse files Browse the repository at this point in the history
* React formatting

* Coherence type for input
  • Loading branch information
fouteox authored and slimani-dev committed Jan 21, 2023
1 parent e6ab40c commit c782429
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function ForgotPassword({ status }) {

<form onSubmit={submit}>
<TextInput
type="text"
type="email"
name="email"
value={data.email}
className="mt-1 block w-full"
Expand Down
3 changes: 1 addition & 2 deletions stubs/inertia-react/resources/js/Pages/Auth/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export default function Login({ status, canResetPassword }) {
<InputLabel forInput="email" value="Email" />

<TextInput
type="text"
id="email"
type="email"
name="email"
value={data.email}
className="mt-1 block w-full"
Expand Down
2 changes: 0 additions & 2 deletions stubs/inertia-react/resources/js/Pages/Auth/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ export default function Register() {
<InputLabel forInput="name" value="Name" />

<TextInput
type="text"
id="name"
name="name"
value={data.name}
className="mt-1 block w-full"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { useEffect, useRef, useState } from 'react';
import React, { useRef, useState } from 'react';
import DangerButton from '@/Components/DangerButton';
import InputError from '@/Components/InputError';
import InputLabel from '@/Components/InputLabel';
import Modal from '@/Components/Modal';
import SecondaryButton from '@/Components/SecondaryButton';
import TextInput from '@/Components/TextInput';
import { useForm, usePage } from '@inertiajs/inertia-react';
import { useForm } from '@inertiajs/inertia-react';

export default function DeleteUserForm({ className }) {
const [confirmingUserDeletion, setConfirmingUserDeletion] = useState(false);
Expand All @@ -22,11 +22,6 @@ export default function DeleteUserForm({ className }) {
password: '',
});

const submit = (e) => {
e.preventDefault();
post(route('profile.destroy'));
};

const confirmUserDeletion = () => {
setConfirmingUserDeletion(true);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from 'react';
import React, { useRef } from 'react';
import InputError from '@/Components/InputError';
import InputLabel from '@/Components/InputLabel';
import PrimaryButton from '@/Components/PrimaryButton';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from 'react';
import React from 'react';
import InputError from '@/Components/InputError';
import InputLabel from '@/Components/InputLabel';
import PrimaryButton from '@/Components/PrimaryButton';
Expand Down Expand Up @@ -35,7 +35,6 @@ export default function UpdateProfileInformation({ mustVerifyEmail, status, clas

<TextInput
id="name"
type="text"
className="mt-1 block w-full"
value={data.name}
handleChange={(e) => setData('name', e.target.value)}
Expand Down

0 comments on commit c782429

Please sign in to comment.