change title input field id from email to title

This commit is contained in:
MarconLP 2023-04-15 22:08:42 +02:00
parent 0084c83551
commit f10873b8ca
No known key found for this signature in database
GPG key ID: A08A9C8B623F5EA5

View file

@ -174,7 +174,7 @@ export default function VideoMoreMenu({ video }: Props) {
<Dialog.Panel className="w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all"> <Dialog.Panel className="w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all">
<div className="sm:col-span-4"> <div className="sm:col-span-4">
<label <label
htmlFor="email" htmlFor="title"
className="block text-sm font-medium leading-6 text-gray-900" className="block text-sm font-medium leading-6 text-gray-900"
> >
Video title Video title
@ -183,10 +183,10 @@ export default function VideoMoreMenu({ video }: Props) {
<input <input
value={title} value={title}
onChange={(e) => setTitle(e.currentTarget.value)} onChange={(e) => setTitle(e.currentTarget.value)}
id="email" id="title"
name="email" name="title"
type="email" type="title"
autoComplete="email" autoComplete="title"
className="block w-full rounded-md border-0 px-2 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6" className="block w-full rounded-md border-0 px-2 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
/> />
</div> </div>