From efcb6ea6cc004720f2e45fa8acc20405e1cf5113 Mon Sep 17 00:00:00 2001 From: Nexite Date: Fri, 12 Nov 2021 17:28:26 -0800 Subject: [PATCH 1/2] fix other pronoun field --- src/components/UserProperty/Pronoun.js | 44 ++++++++++++++------------ 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/components/UserProperty/Pronoun.js b/src/components/UserProperty/Pronoun.js index 2b39681..37844c0 100644 --- a/src/components/UserProperty/Pronoun.js +++ b/src/components/UserProperty/Pronoun.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; import Input from '@codeday/topo/Atom/Input/Text'; import FormControl, { Label } from '@codeday/topo/Atom/Form'; import Text, { Link } from '@codeday/topo/Atom/Text'; +import Box from '@codeday/topo/Atom/Box' import Radio, { Group, Stack } from '@codeday/topo/Atom/Input/Radio'; const CUSTOM = 'custom'; @@ -23,26 +24,29 @@ const Pronoun = ({ user, onChange }) => { const defaultRadios = Object.keys(defaultPronouns) .map((k) => {defaultPronouns[k]}); - const customRadio = ( - - { - custom || selection === CUSTOM - ? ( - { - setSelection(CUSTOM); - setCustom(e.target.value); - onChange({ pronoun: e.target.value }); - }} - /> - ) : ( - (other) - ) - } - - ); - + const customRadio = ( + + + {" "} + + { + custom || selection === CUSTOM ? ( + { + console.log(e) + setCustom(e.target.value); + onChange({ pronoun: e.target.value }); + setSelection(CUSTOM); + }} + /> + ) : ( + (other) + ) + } + + ); return (