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="keywords" id="meta-keywords" content="" />
|
||||
<title>Türkmenistan Habarlar Portaly</title>
|
||||
<script type="module" crossorigin src="/assets/index-ffe28ddb.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-72d889a4.css">
|
||||
<script type="module" crossorigin src="/assets/index-cd5793de.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-d6c92da7.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
|
|
|||
|
|
@ -80,15 +80,26 @@ const SearchResult = () => {
|
|||
</h1>
|
||||
</div>
|
||||
<div className="sresult-content">
|
||||
{data.data[0].id > -1 ? (
|
||||
<CustomNewsScroll
|
||||
pagination={true}
|
||||
data={data}
|
||||
word={word}
|
||||
pageMemo={pageMemo}
|
||||
/>
|
||||
{data.data.length > 0 ? (
|
||||
data?.data[0]?.id > -1 ? (
|
||||
<CustomNewsScroll
|
||||
pagination={true}
|
||||
data={data}
|
||||
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>
|
||||
|
|
|
|||
|
|
@ -15,3 +15,7 @@
|
|||
font-size: 2.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.empty {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue