Skip to content

Commit

Permalink
fix: added permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Riddhiagrawal001 committed Jul 22, 2024
1 parent 19a14ce commit 946cd3f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/screens/Order/OrderUIUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,13 @@ module GenerateSampleDataButton = {
onClick={_ => generateSampleData()->ignore}
leftIcon={CustomIcon(<Icon name="plus" size=13 />)}
/>
<div
<ACLDiv
permission={userPermissionJson.operationsManage}
className="bg-jp-gray-button_gray text-jp-gray-900 text-opacity-75 hover:bg-jp-gray-secondary_hover hover:text-jp-gray-890 focus:outline-none items-center border border-border_gray cursor-pointer p-2 overflow-hidden text-jp-gray-950 hover:text-black
border flex items-center justify-center rounded-r-md">
<Icon name="delete" size=20 onClick={ev => rightIconClick(ev)} />
</div>
border flex items-center justify-center rounded-r-md"
onClick={ev => rightIconClick(ev)}>
<Icon name="delete" size=20 />
</ACLDiv>
</div>
</UIUtils.RenderIf>
}
Expand Down

0 comments on commit 946cd3f

Please sign in to comment.