playbook_ui_docs 13.31.0.pre.alpha.PLAY882formpillprimaryandneutral3201 → 13.31.0.pre.alpha.PLAY10863204

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebfa493a945249f410d5e192987aaf5b1f131a92caa9260dec29847c522531af
4
- data.tar.gz: 7835e74638db154a6129813f566e9e388b6bca378317065d13184dc535fc376f
3
+ metadata.gz: 27c05cac000429d46ff7ed199368b7abae766129922093dd6d0b33bd45c6a6b4
4
+ data.tar.gz: a1c56da4e7061eafa9ebbc53281e69a56e6f3ba780298230c99bc239c7affe14
5
5
  SHA512:
6
- metadata.gz: b5b8c85ab7dd4b74c30ee36ee154ff7aa4587c839c938a346575d207030ca3f3af421e76e37789f0a681c6960ba225880b24ae938ea3e2d032ef0d95b8f75034
7
- data.tar.gz: a8d5348f73fca9857ed443e7523332fc4891712b86deeca62b177b3395809429b2250dbc2431b7421627b12710fe73791180db02fc25fa5ef85e8ec4ca442401
6
+ metadata.gz: e305119438bfe3a329e0de069a568c3f3a68ca2f30923f1b6e41221ecba03ff505b6d3a57654d7526f82badc3ae5fd1bf59b3d7eb66707710ef5987e8a75d08c
7
+ data.tar.gz: 2e58757bda96a91842dcd128f3d08015d81aa6242611b18f3e442a85ccd327443f16baf2bc623a83527267a660b8b904b83f898119d41afb6b8dcb860f977f59
@@ -5,12 +5,12 @@ import TextInput from '../../pb_text_input/_text_input'
5
5
  import Title from '../../pb_title/_title'
6
6
 
7
7
  const TextInputDefault = (props) => {
8
+ const [firstName, setFirstName] = useState('')
8
9
  const handleOnChangeFirstName = ({ target }) => {
9
10
  setFirstName(target.value)
10
11
  }
11
12
  const ref = React.createRef()
12
13
 
13
- const [firstName, setFirstName] = useState('')
14
14
  const [formFields, setFormFields] = useState({
15
15
  firstName: 'Jane',
16
16
  lastName: 'Doe',
@@ -1,3 +1,5 @@
1
+ /* eslint-disable react/no-multi-comp */
2
+
1
3
  import React, { useState } from 'react'
2
4
 
3
5
  import {
@@ -47,8 +47,6 @@ const promiseOptions = (inputValue) =>
47
47
 
48
48
  const TypeaheadWithPillsAsync = (props) => {
49
49
  const [users, setUsers] = useState([])
50
- const handleOnChange = (value) => setUsers(formatUsers(value))
51
- const formatValue = (users) => formatUsers(users)
52
50
  const formatUsers = (users) => {
53
51
  const results = () => (users.map((user) => {
54
52
  if (Object.keys(user)[0] === 'name' || Object.keys(user)[1] === 'id'){
@@ -59,6 +57,8 @@ const TypeaheadWithPillsAsync = (props) => {
59
57
  }))
60
58
  return results()
61
59
  }
60
+ const handleOnChange = (value) => setUsers(formatUsers(value))
61
+ const formatValue = (users) => formatUsers(users)
62
62
 
63
63
  return (
64
64
  <>