Bookmark folders

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-03-20 23:58:53 +01:00
parent 460e22ce2b
commit eceafedec4
31 changed files with 748 additions and 60 deletions

View File

@ -4,7 +4,7 @@ import { useEffect, useState } from 'react';
* Returns props for `<input type="text">`.
* If `initialValue` changes from undefined to a string, it will set the value.
*/
function useTextField(initialValue: string | undefined) {
function useTextField(initialValue?: string | undefined) {
const [value, setValue] = useState(initialValue);
const hasInitialValue = typeof initialValue === 'string';