Improve UI
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { SmartAction as ImportedSmartAction, SmartActionType } from '../api/types/events';
|
||||
import { useTenantStore } from '../stores/tenant.store';
|
||||
import { getTenantCurrencySymbol } from '../hooks/useTenantCurrency';
|
||||
|
||||
// ============================================================
|
||||
// Types (using imported types from events.ts)
|
||||
@@ -168,7 +170,7 @@ export class SmartActionHandler {
|
||||
body: JSON.stringify({
|
||||
action: 'approve',
|
||||
approved_by: 'current_user',
|
||||
notes: `Approved via alert action${amount ? ` (€${amount})` : ''}`,
|
||||
notes: `Approved via alert action${amount ? ` (${getTenantCurrencySymbol(useTenantStore.getState().currentTenant?.currency)}${amount})` : ''}`,
|
||||
}),
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user