fix: ability option key.

This commit is contained in:
elforjani13
2021-11-27 20:23:40 +02:00
parent 68227b81e8
commit 346696f673
6 changed files with 34 additions and 22 deletions

View File

@@ -85,11 +85,13 @@ function ReceiptDetailActionBar({
/>
<NavbarDivider />
</Can>
<MoreMenuItems
payload={{
onNotifyViaSMS: handleNotifyViaSMS,
}}
/>
<Can I={SaleReceiptAction.NotifyBySms} a={AbilitySubject.Receipt}>
<MoreMenuItems
payload={{
onNotifyViaSMS: handleNotifyViaSMS,
}}
/>
</Can>
</NavbarGroup>
</DashboardActionsBar>
);