Refactor subuser modal and fix to be less of a code monstrosity; closes #2583

This commit is contained in:
Dane Everitt 2020-10-25 15:47:50 -07:00
parent 21d4402a55
commit 39dddba1d6
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 228 additions and 233 deletions

View file

@ -19,14 +19,11 @@ export default ({ subuser }: Props) => {
return (
<GreyRowBox css={tw`mb-2`}>
{visible &&
<EditSubuserModal
appear
visible
subuser={subuser}
onDismissed={() => setVisible(false)}
visible={visible}
onModalDismissed={() => setVisible(false)}
/>
}
<div css={tw`w-10 h-10 rounded-full bg-white border-2 border-neutral-800 overflow-hidden hidden md:block`}>
<img css={tw`w-full h-full`} src={`${subuser.image}?s=400`}/>
</div>