chore(ui): assign no default to required prop

pull/5925/head
Pavel Zavora 2022-06-07 07:59:06 +02:00
parent 45569526ff
commit d42c280a77
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ interface Props {
setVisible: (visible: boolean) => void setVisible: (visible: boolean) => void
visible: boolean visible: boolean
} }
const CreateUserDialog = ({visible = true, setVisible, create}: Props) => { const CreateUserDialog = ({visible, setVisible, create}: Props) => {
const [name, setName] = useState('') const [name, setName] = useState('')
const [password, setPassword] = useState('') const [password, setPassword] = useState('')
const cancel = useCallback(() => { const cancel = useCallback(() => {