From 680871de622fd121d65b33f04131ada0d50f7dd8 Mon Sep 17 00:00:00 2001 From: Bogdan Bodnar Date: Mon, 30 Sep 2019 11:26:06 +0200 Subject: [PATCH] Core review docs fixes. --- docs/forms.md | 2 - src/bootstrap/Checkbox.md | 2 +- src/bootstrap/EmailInput.md | 2 +- src/bootstrap/Modal.md | 2 +- src/bootstrap/NumberInput.md | 2 +- src/bootstrap/PasswordInput.md | 2 +- src/bootstrap/RadioSet.md | 2 +- src/bootstrap/TextInput.md | 2 +- src/form/components/ForisForm.md | 73 ++++++++++++++++++++++++++++++++ styleguide.config.js | 1 - 10 files changed, 80 insertions(+), 10 deletions(-) delete mode 100644 docs/forms.md create mode 100644 src/form/components/ForisForm.md 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 -
+