change styles and remove research button
This commit is contained in:
@@ -101,7 +101,7 @@ export async function searchGlobalFiles(fileId: string, currentPage: number) {
|
||||
throw parsed;
|
||||
}
|
||||
} else {
|
||||
throw (`${response.status}`);
|
||||
throw 'error';
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
|
||||
@@ -3255,13 +3255,13 @@
|
||||
|
||||
.global-no-result {
|
||||
text-align: center;
|
||||
padding: 30px 20px;
|
||||
padding: 40px 20px;
|
||||
background: #f8fafc;
|
||||
border-radius: 16px;
|
||||
margin: 20px 0;
|
||||
|
||||
&-text {
|
||||
margin-bottom: 40px;
|
||||
.btn-search {
|
||||
margin-top: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -205,12 +205,11 @@ export function FileSearchPanel({ fileId, ref }: { fileId: string | null, ref: a
|
||||
|
||||
{(searchedGlobalFilesShowNull && !loading) && (
|
||||
<div className="global-no-result" id="global-no-result">
|
||||
<div className="global-no-result-icon">‍</div>
|
||||
<h4>{t('no-similar-global-title')}</h4>
|
||||
<p className="global-no-result-text">
|
||||
{t('no-similar-global-description')}
|
||||
</p>
|
||||
<button
|
||||
{/* <button
|
||||
onClick={() => {
|
||||
if (fileId) {
|
||||
handlerSearchGlobalFile(fileId, 1);
|
||||
@@ -219,7 +218,7 @@ export function FileSearchPanel({ fileId, ref }: { fileId: string | null, ref: a
|
||||
className="btn btn-primary btn-search"
|
||||
>
|
||||
{t('search-again')}
|
||||
</button>
|
||||
</button> */}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user