mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-22 21:59:22 +01:00
Add loader to search page
This commit is contained in:
parent
0a7189d35a
commit
ee5ab3f22c
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,7 @@ import { useSearchParams } from 'react-router-dom';
|
||||||
|
|
||||||
import Avatar from '../components/avatar';
|
import Avatar from '../components/avatar';
|
||||||
import Link from '../components/link';
|
import Link from '../components/link';
|
||||||
|
import Loader from '../components/loader';
|
||||||
import Menu from '../components/menu';
|
import Menu from '../components/menu';
|
||||||
import NameText from '../components/name-text';
|
import NameText from '../components/name-text';
|
||||||
import Status from '../components/status';
|
import Status from '../components/status';
|
||||||
|
@ -81,6 +82,7 @@ function Search() {
|
||||||
instance={instance}
|
instance={instance}
|
||||||
showAcct
|
showAcct
|
||||||
/>
|
/>
|
||||||
|
<br />
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -129,6 +131,10 @@ function Search() {
|
||||||
<p class="ui-state">No posts found.</p>
|
<p class="ui-state">No posts found.</p>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
) : uiState === 'loading' ? (
|
||||||
|
<p class="ui-state">
|
||||||
|
<Loader abrupt />
|
||||||
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<p class="ui-state">Enter your search term above to get started.</p>
|
<p class="ui-state">Enter your search term above to get started.</p>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue