Update files

This commit is contained in:
glpshchn 2025-11-04 01:19:27 +03:00
parent 02d7b1a958
commit 4d4601ecb5
2 changed files with 69 additions and 32 deletions

View File

@ -371,6 +371,7 @@ export default function Search({ user }) {
<span>Используйте e621 и gelbooru</span>
</div>
) : (
<>
<div className="results-grid">
{results.map((item, index) => {
const imageId = `${item.source}-${item.id}`
@ -405,6 +406,7 @@ export default function Search({ user }) {
</button>
</div>
)}
</>
)}
</div>

35
🔧_SYNTAX_FIX.txt Normal file
View File

@ -0,0 +1,35 @@
╔═══════════════════════════════════════════════════════════════════════╗
║ ║
║ 🔧 ИСПРАВЛЕНА СИНТАКСИЧЕСКАЯ ОШИБКА 🔧 ║
║ ║
╚═══════════════════════════════════════════════════════════════════════╝
ПРОБЛЕМА:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expected ")" but found "{"
Не хватало React Fragment (<>) для нескольких элементов
ИСПРАВЛЕНО:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Обернул в <> ... </> два элемента:
• results-grid
• send-selected-bar
ОБНОВИТЬ (1 файл):
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
cd /Users/glpshchn/Desktop/nakama
scp frontend/src/pages/Search.jsx root@ваш_IP:/var/www/nakama/frontend/src/pages/
ssh root@ваш_IP "cd /var/www/nakama/frontend && npm run build"
30 секунд