From 7f99d55a0f8a03b81c3fc5da9f0145eb52a5d43b Mon Sep 17 00:00:00 2001 From: Corantin Date: Tue, 22 Aug 2023 22:40:49 -0400 Subject: [PATCH 1/2] Sync --- .../react-app/src/components/address-list.tsx | 26 ++++++++++++------- .../components/modals/create-quest-modal.tsx | 20 +++++++++++++- packages/react-app/src/components/quest.tsx | 14 +--------- .../react-app/src/models/transaction.model.ts | 1 + .../react-app/src/queries/quests.query.ts | 1 + .../react-app/src/services/quest.service.ts | 2 +- 6 files changed, 39 insertions(+), 25 deletions(-) diff --git a/packages/react-app/src/components/address-list.tsx b/packages/react-app/src/components/address-list.tsx index 1fcbb97d..deda6d8f 100644 --- a/packages/react-app/src/components/address-list.tsx +++ b/packages/react-app/src/components/address-list.tsx @@ -5,8 +5,10 @@ import { noop } from 'lodash-es'; import { QuestModel } from 'src/models/quest.model'; import React, { BaseSyntheticEvent } from 'react'; import { AddressFieldInput } from './field-input/address-field-input'; +import { FieldInput } from './field-input/field-input'; -const PlayerWrapperStyled = styled.div` +const AddressListWrapperStyled = styled.div` + width: 100%; display: flex; flex-direction: row; align-items: flex-end; @@ -49,7 +51,6 @@ export default function AddressListFieldInput({ formikValues, setValuesFormik, }: Props) { - // const [addressList, setAddressList] = useState(values); const addPlayerToWhitelist = () => { values!.push(''); setValuesFormik?.(formikValues); @@ -60,25 +61,30 @@ export default function AddressListFieldInput({ }; return ( - <> + {formikValues ? ( <> {values.map((player, i) => ( - + {isEdit && (