fix exchange rate unavailable status
This commit is contained in:
@@ -350,7 +350,9 @@ export const TenderDetailModal = () => {
|
|||||||
<span className="font-bold text-xs uppercase tracking-wider flex items-center gap-1.5">
|
<span className="font-bold text-xs uppercase tracking-wider flex items-center gap-1.5">
|
||||||
<Calculator className="w-4 h-4 text-blue-400" /> Kur Farkı Hesaplayıcı
|
<Calculator className="w-4 h-4 text-blue-400" /> Kur Farkı Hesaplayıcı
|
||||||
</span>
|
</span>
|
||||||
<span className="text-[10px] bg-blue-500/30 text-blue-300 px-2 py-0.5 rounded font-bold">TCMB döviz satış</span>
|
<span className={`text-[10px] px-2 py-0.5 rounded font-bold ${fx ? 'bg-blue-500/30 text-blue-300' : 'bg-slate-500/30 text-slate-300'}`}>
|
||||||
|
{fx ? 'TCMB döviz satış' : 'Kur verisi bekleniyor'}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{fx && <p className="text-[11px]"><a href={fx.source} target="_blank" rel="noreferrer" className="underline">TCMB bülteni: {fx.bulletinDate}</a> · Alındı: {new Date(fx.fetchedAt).toLocaleString('tr-TR')}</p>}
|
{fx && <p className="text-[11px]"><a href={fx.source} target="_blank" rel="noreferrer" className="underline">TCMB bülteni: {fx.bulletinDate}</a> · Alındı: {new Date(fx.fetchedAt).toLocaleString('tr-TR')}</p>}
|
||||||
|
|||||||
Reference in New Issue
Block a user