Унификация отображения ошибок: LoadingError для загрузки, Toast для действий
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 34s

This commit is contained in:
poignatov
2026-01-11 15:51:28 +03:00
parent 8023fb9108
commit 932dba8682
17 changed files with 284 additions and 91 deletions

View File

@@ -1,5 +1,6 @@
import React, { useState, useEffect } from 'react'
import { useAuth } from './auth/AuthContext'
import LoadingError from './LoadingError'
import './WordList.css'
const API_URL = '/api'
@@ -176,7 +177,11 @@ function WordList({ onNavigate, dictionaryId, isNewDictionary, refreshTrigger =
if (error) {
return (
<div className="word-list">
<div className="error-message">{error}</div>
<LoadingError onRetry={() => {
if (hasValidDictionary(currentDictionaryId)) {
fetchWordsForDictionary(currentDictionaryId)
}
}} />
</div>
)
}