search result bug fix
This commit is contained in:
parent
0c5c5c4648
commit
91389ac2ec
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -6,8 +6,8 @@
|
||||||
<meta name="description" id="meta-description" content="" />
|
<meta name="description" id="meta-description" content="" />
|
||||||
<meta name="keywords" id="meta-keywords" content="" />
|
<meta name="keywords" id="meta-keywords" content="" />
|
||||||
<title>Türkmenistan Habarlar Portaly</title>
|
<title>Türkmenistan Habarlar Portaly</title>
|
||||||
<script type="module" crossorigin src="/assets/index-ffe28ddb.js"></script>
|
<script type="module" crossorigin src="/assets/index-cd5793de.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/index-72d889a4.css">
|
<link rel="stylesheet" href="/assets/index-d6c92da7.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|
|
||||||
|
|
@ -80,15 +80,26 @@ const SearchResult = () => {
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div className="sresult-content">
|
<div className="sresult-content">
|
||||||
{data.data[0].id > -1 ? (
|
{data.data.length > 0 ? (
|
||||||
<CustomNewsScroll
|
data?.data[0]?.id > -1 ? (
|
||||||
pagination={true}
|
<CustomNewsScroll
|
||||||
data={data}
|
pagination={true}
|
||||||
word={word}
|
data={data}
|
||||||
pageMemo={pageMemo}
|
word={word}
|
||||||
/>
|
pageMemo={pageMemo}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<Loader />
|
||||||
|
)
|
||||||
) : (
|
) : (
|
||||||
<Loader />
|
<span className="empty">
|
||||||
|
{" "}
|
||||||
|
{language === "EN"
|
||||||
|
? `No results for "${word}"`
|
||||||
|
: language === "RU"
|
||||||
|
? `Нет результаты по поиску "${word}"`
|
||||||
|
: `"${word}" gözleg boýunça netije ýok`}
|
||||||
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -15,3 +15,7 @@
|
||||||
font-size: 2.4rem;
|
font-size: 2.4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.empty {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue