Spaces:
Sleeping

axeronis commited on
Commit
27bc378
·
1 Parent(s): d681af7

fix(frontend): restore broken JSX structure in WhatsAppQRConnect

Browse files
frontend/components/WhatsAppQRConnect.tsx CHANGED
@@ -243,11 +243,34 @@ export function WhatsAppQRConnect({ onSuccess }: WhatsAppQRConnectProps) {
243
  onClick={refreshQR}
244
  disabled={loading}
245
  className="text-sm text-indigo-600 hover:text-indigo-700 disabled:opacity-50 disabled:hover:text-indigo-600 transition-colors flex items-center gap-1.5 font-medium hover:underline"
246
- </div>
 
 
 
247
 
248
- <div className="px-6 py-4 bg-slate-50 border-t border-slate-100 text-center text-xs text-slate-500">
249
- Автоматическое обновление каждые 30 секунд • Безопасное соединение через Baileys
 
 
250
  </div>
251
  </div>
252
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  }
 
243
  onClick={refreshQR}
244
  disabled={loading}
245
  className="text-sm text-indigo-600 hover:text-indigo-700 disabled:opacity-50 disabled:hover:text-indigo-600 transition-colors flex items-center gap-1.5 font-medium hover:underline"
246
+ >
247
+ <RefreshCw className="w-4 h-4" />
248
+ Обновить QR сейчас
249
+ </button>
250
 
251
+ {/* Debug/Version Indicator */}
252
+ <div className="mt-4 text-xs text-gray-500 text-center">
253
+ v1.2 (120s fixed)
254
+ </div>
255
  </div>
256
  </div>
257
+ )}
258
+ </div>
259
+ </div>
260
+
261
+ <div className="px-6 py-4 bg-slate-50 border-t border-slate-100 text-center text-xs text-slate-500">
262
+ Автоматическое обновление каждые 120 секунд • Безопасное соединение через Baileys
263
+ </div>
264
+
265
+ <style>{`
266
+ @keyframes scan {
267
+ 0%, 100% { top: 0%; }
268
+ 50% { top: 100%; }
269
+ }
270
+ .animate-scan {
271
+ animation: scan 2s linear infinite;
272
+ }
273
+ `}</style>
274
+ </div>
275
+ );
276
  }