1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-22 23:06:23 +00:00

Merge pull request from overleaf/as-checkout-name-fields

Add new Name fields for Checkout Redesign

GitOrigin-RevId: 448084e026a86510efe3c76c6663c0a770c24f8e
This commit is contained in:
M Fahru 2024-11-14 09:21:30 -07:00 committed by Copybot
parent e588b0748a
commit 9dba1ccd8f

View file

@ -1,6 +1,6 @@
import { useState } from 'react'
type Target = HTMLInputElement | HTMLSelectElement
type Target = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement
function useValidateField<T extends { target: Target }>() {
const [isValid, setIsValid] = useState(true)