Add keys to conflict buttons
This commit is contained in:
parent
fba1a6dfde
commit
102e7e57b3
2 changed files with 14 additions and 2 deletions
|
|
@ -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')}
|
||||||
/>,
|
/>,
|
||||||
]}
|
]}
|
||||||
|
|
|
||||||
|
|
@ -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')}
|
||||||
/>,
|
/>,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue