Change Endpoint field from 'text' to 'url'

For browsers that support it, this input will validate for basic URL scheme (scheme://etc) and on devices like iPhones may enable the url keyboard.
This commit is contained in:
Greg Colker 2023-05-12 10:41:54 -04:00
parent b570ef083d
commit e58e434fbd

View File

@ -92,7 +92,7 @@ export const StoragePrefs = () => {
disabled={!loaded}
required
id="endpoint"
type="text"
type="url"
defaultValue={s3.credentials?.endpoint}
{...register('endpoint', { required: true })}
className="input default-ring bg-gray-50"