mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 06:40:50 +01:00
Fix Gift Opening UI 2
This commit is contained in:
parent
abef910695
commit
726d384dba
@ -180,7 +180,7 @@ export const FurnitureGiftOpeningView: FC<{}> = props =>
|
|||||||
<NitroLayoutGiftCardView userName={ senderName } figure={ senderFigure } message={ text } />
|
<NitroLayoutGiftCardView userName={ senderName } figure={ senderFigure } message={ text } />
|
||||||
<div className="d-flex gap-2 mt-2">
|
<div className="d-flex gap-2 mt-2">
|
||||||
{ senderName && <button className="btn btn-primary w-100 text-nowrap" onClick={ () => handleAction('give_gift') }>{ LocalizeText('widget.furni.present.give_gift', ['name'], [senderName]) }</button> }
|
{ senderName && <button className="btn btn-primary w-100 text-nowrap" onClick={ () => handleAction('give_gift') }>{ LocalizeText('widget.furni.present.give_gift', ['name'], [senderName]) }</button> }
|
||||||
<button className="btn btn-success w-100 text-nowrap" onClick={ () => handleAction('open') }>{ LocalizeText('widget.furni.present.open_gift') }</button>
|
{ isOwnerOfFurniture && <button className="btn btn-success w-100 text-nowrap" onClick={ () => handleAction('open') }>{ LocalizeText('widget.furni.present.open_gift') }</button> }
|
||||||
</div>
|
</div>
|
||||||
</> }
|
</> }
|
||||||
{ placedItemId !== -1 && <>
|
{ placedItemId !== -1 && <>
|
||||||
@ -194,7 +194,7 @@ export const FurnitureGiftOpeningView: FC<{}> = props =>
|
|||||||
</div>
|
</div>
|
||||||
<div className="d-flex gap-2 mt-3">
|
<div className="d-flex gap-2 mt-3">
|
||||||
<button className="btn btn-primary w-100 text-nowrap" onClick={ () => handleAction('inventory') }>{ LocalizeText('widget.furni.present.put_in_inventory') }</button>
|
<button className="btn btn-primary w-100 text-nowrap" onClick={ () => handleAction('inventory') }>{ LocalizeText('widget.furni.present.put_in_inventory') }</button>
|
||||||
<button className="btn btn-success w-100 text-nowrap" onClick={ () => handleAction('room') }>{ LocalizeText(placedItemType === FLOOR ? 'widget.furni.present.keep_in_room' : 'widget.furni.present.place_in_room') }</button>
|
<button className="btn btn-success w-100 text-nowrap" onClick={ () => handleAction('room') }>{ LocalizeText(placedInRoom ? 'widget.furni.present.keep_in_room' : 'widget.furni.present.place_in_room') }</button>
|
||||||
</div>
|
</div>
|
||||||
{ senderName && <>
|
{ senderName && <>
|
||||||
<button className="btn btn-primary w-100 text-nowrap mt-2" onClick={ () => handleAction('give_gift') }>{ LocalizeText('widget.furni.present.give_gift', ['name'], [senderName]) }</button>
|
<button className="btn btn-primary w-100 text-nowrap mt-2" onClick={ () => handleAction('give_gift') }>{ LocalizeText('widget.furni.present.give_gift', ['name'], [senderName]) }</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user