mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 04:33:42 +08:00
[resumes][feat] add spinner to browse page
This commit is contained in:
@ -14,6 +14,7 @@ import {
|
|||||||
CheckboxList,
|
CheckboxList,
|
||||||
DropdownMenu,
|
DropdownMenu,
|
||||||
Pagination,
|
Pagination,
|
||||||
|
Spinner,
|
||||||
Tabs,
|
Tabs,
|
||||||
TextInput,
|
TextInput,
|
||||||
} from '@tih/ui';
|
} from '@tih/ui';
|
||||||
@ -528,7 +529,15 @@ export default function ResumeHomePage() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
{sessionData === null && tabsValue !== BROWSE_TABS_VALUES.ALL ? (
|
{allResumesQuery.isLoading ||
|
||||||
|
starredResumesQuery.isLoading ||
|
||||||
|
myResumesQuery.isLoading ? (
|
||||||
|
<div className="w-full pt-4">
|
||||||
|
{' '}
|
||||||
|
<Spinner display="block" size="lg" />{' '}
|
||||||
|
</div>
|
||||||
|
) : sessionData === null &&
|
||||||
|
tabsValue !== BROWSE_TABS_VALUES.ALL ? (
|
||||||
<ResumeSignInButton
|
<ResumeSignInButton
|
||||||
className="mt-8"
|
className="mt-8"
|
||||||
text={getLoggedOutText(tabsValue)}
|
text={getLoggedOutText(tabsValue)}
|
||||||
|
Reference in New Issue
Block a user