Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import CurrencySelect from '@/components/currency-select';
|
||||
import { useEffect, useState } from 'react';
|
||||
import {
|
||||
exportMonthlyCashflowCsv,
|
||||
@@ -90,30 +91,20 @@ export function SimulationCashflowPlanner({
|
||||
aria-labelledby="cashflow-title"
|
||||
>
|
||||
<label className="block max-w-xs text-sm font-medium">
|
||||
Moeda do projecto (código ISO)
|
||||
<input
|
||||
list="cashflow-currency-options"
|
||||
inputMode="text"
|
||||
maxLength={3}
|
||||
pattern="[A-Z]{3}"
|
||||
autoCapitalize="characters"
|
||||
Moeda do projecto
|
||||
<CurrencySelect
|
||||
label="Moeda do projecto"
|
||||
codes={simulationCurrencyOptions}
|
||||
value={currency}
|
||||
onChange={(event) =>
|
||||
onCurrencyChange(event.target.value.toUpperCase())
|
||||
}
|
||||
className="mt-1 w-full rounded border p-2"
|
||||
aria-invalid={
|
||||
currency !== '' && !isSimulationCurrency(currency)
|
||||
onChange={onCurrencyChange}
|
||||
error={
|
||||
currency && !isSimulationCurrency(currency)
|
||||
? 'Confirme a moeda seleccionada.'
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
</label>
|
||||
<datalist id="cashflow-currency-options">
|
||||
{simulationCurrencyOptions.map((code) => (
|
||||
<option key={code} value={code}>
|
||||
{code}
|
||||
</option>
|
||||
))}
|
||||
</datalist>
|
||||
|
||||
<h3 id="cashflow-title" className="text-lg font-semibold">
|
||||
Projecção de tesouraria — 12 meses
|
||||
</h3>
|
||||
|
||||
Reference in New Issue
Block a user