Update files
This commit is contained in:
parent
02d7b1a958
commit
4d4601ecb5
|
|
@ -371,6 +371,7 @@ export default function Search({ user }) {
|
||||||
<span>Используйте e621 и gelbooru</span>
|
<span>Используйте e621 и gelbooru</span>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
<>
|
||||||
<div className="results-grid">
|
<div className="results-grid">
|
||||||
{results.map((item, index) => {
|
{results.map((item, index) => {
|
||||||
const imageId = `${item.source}-${item.id}`
|
const imageId = `${item.source}-${item.id}`
|
||||||
|
|
@ -405,6 +406,7 @@ export default function Search({ user }) {
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 секунд
|
||||||
|
|
||||||
Loading…
Reference in New Issue