Improve UI

This commit is contained in:
Urtzi Alfaro
2025-12-30 14:40:20 +01:00
parent e494ea8635
commit c07df124fb
71 changed files with 647 additions and 265 deletions

View File

@@ -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})` : ''}`,
}),
}
);