diff --git a/docs/forms.md b/docs/forms.md deleted file mode 100644 index bb1a83e..0000000 --- a/docs/forms.md +++ /dev/null @@ -1,2 +0,0 @@ -`` is HOC which encapsulates entire form logic and provided children required props. -This component structure provides comfort API and allows to create typical Foris module forms easily. diff --git a/src/bootstrap/Checkbox.md b/src/bootstrap/Checkbox.md index 3816bf6..a4a5bbf 100644 --- a/src/bootstrap/Checkbox.md +++ b/src/bootstrap/Checkbox.md @@ -11,6 +11,6 @@ const [value, setValue] = useState(false); value={value} label="Some label" helpText="Read the small text!" - onChange={e => setValue(e.target.value)} + onChange={event =>setValue(event.target.value)} /> ``` diff --git a/src/bootstrap/EmailInput.md b/src/bootstrap/EmailInput.md index 72f8ea8..b9ac8bc 100644 --- a/src/bootstrap/EmailInput.md +++ b/src/bootstrap/EmailInput.md @@ -11,7 +11,7 @@ const [email, setEmail] = useState('Wrong email'); value={email} label="Some label" helpText="Read the small text!" - onChange={e => setEmail(e.target.value)} + onChange={event =>setEmail(event.target.value)} /> diff --git a/src/bootstrap/Modal.md b/src/bootstrap/Modal.md index 026399f..70b733f 100644 --- a/src/bootstrap/Modal.md +++ b/src/bootstrap/Modal.md @@ -3,7 +3,7 @@ Bootstrap modal component. it's required to have an element `
` somewhere on the page since modals are rendered in portals. ```js -
+