Add keys to conflict buttons

This commit is contained in:
Justin Edmund 2023-07-02 03:30:36 -07:00
parent fba1a6dfde
commit 102e7e57b3
2 changed files with 14 additions and 2 deletions

View file

@ -111,10 +111,16 @@ const CharacterConflictModal = (props: Props) => {
</div> </div>
<DialogFooter <DialogFooter
rightElements={[ rightElements={[
<Button bound={true} onClick={close} text={t('buttons.cancel')} />, <Button
bound={true}
onClick={close}
key="cancel"
text={t('buttons.cancel')}
/>,
<Button <Button
bound={true} bound={true}
onClick={props.resolveConflict} onClick={props.resolveConflict}
key="confirm"
text={t('modals.conflict.buttons.confirm')} text={t('modals.conflict.buttons.confirm')}
/>, />,
]} ]}

View file

@ -103,9 +103,15 @@ const WeaponConflictModal = (props: Props) => {
</div> </div>
<DialogFooter <DialogFooter
rightElements={[ rightElements={[
<Button bound={true} onClick={close} text={t('buttons.cancel')} />,
<Button <Button
bound={true} bound={true}
onClick={close}
key="cancel"
text={t('buttons.cancel')}
/>,
<Button
bound={true}
key="confirm"
onClick={props.resolveConflict} onClick={props.resolveConflict}
text={t('modals.conflict.buttons.confirm')} text={t('modals.conflict.buttons.confirm')}
/>, />,