mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 00:50:50 +01:00
Fix Gift Opening UI permission
This commit is contained in:
parent
726d384dba
commit
5e7bd29e97
@ -178,10 +178,10 @@ export const FurnitureGiftOpeningView: FC<{}> = props =>
|
|||||||
<NitroCardContentView>
|
<NitroCardContentView>
|
||||||
{ placedItemId === -1 && <>
|
{ placedItemId === -1 && <>
|
||||||
<NitroLayoutGiftCardView userName={ senderName } figure={ senderFigure } message={ text } />
|
<NitroLayoutGiftCardView userName={ senderName } figure={ senderFigure } message={ text } />
|
||||||
<div className="d-flex gap-2 mt-2">
|
{ isOwnerOfFurniture && <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> }
|
||||||
{ isOwnerOfFurniture && <button className="btn btn-success w-100 text-nowrap" onClick={ () => handleAction('open') }>{ LocalizeText('widget.furni.present.open_gift') }</button> }
|
<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 && <>
|
||||||
<div className="d-flex gap-2 align-items-center">
|
<div className="d-flex gap-2 align-items-center">
|
||||||
|
Loading…
Reference in New Issue
Block a user