[resumes][feat] add spinner to browse page

pull/413/head
Wu Peirong 2 years ago
parent 13f40ab6ae
commit b2237f97f2

@ -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)}

Loading…
Cancel
Save