fix: resolve isochroneLoading variable reference in TacticalDefenseView

This commit is contained in:
Hamza-Ayed
2026-08-18 15:19:15 +03:00
parent 3109d782d3
commit fc4be2b8fd
+2 -2
View File
@@ -3256,7 +3256,7 @@ ${terrainResult.tacticalRecommendations.map((r, i) => `${i + 1}. ${r}`).join('\n
{/* Action Button */} {/* Action Button */}
<button <button
onClick={() => runIsochroneCalculation()} onClick={() => runIsochroneCalculation()}
disabled={isIsochroneLoading} disabled={isochroneLoading}
style={{ style={{
background: 'linear-gradient(135deg, #16a34a, #22c55e)', background: 'linear-gradient(135deg, #16a34a, #22c55e)',
border: 'none', border: 'none',
@@ -3273,7 +3273,7 @@ ${terrainResult.tacticalRecommendations.map((r, i) => `${i + 1}. ${r}`).join('\n
boxShadow: '0 4px 14px rgba(34, 197, 94, 0.4)' boxShadow: '0 4px 14px rgba(34, 197, 94, 0.4)'
}} }}
> >
{isIsochroneLoading ? ( {isochroneLoading ? (
<> <>
<RotateCcw size={15} style={{ animation: 'spin 1s linear infinite' }} /> <RotateCcw size={15} style={{ animation: 'spin 1s linear infinite' }} />
<span>جاري احتساب مضلعات الوصول وشبكة الطرق...</span> <span>جاري احتساب مضلعات الوصول وشبكة الطرق...</span>