Skip to content

Commit 253f78d

Browse files
committed
refactor: add loading state to the roles cards
1 parent f4959e2 commit 253f78d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/authz-module/libraries-manager/LibrariesTeamManager.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { useMemo } from 'react';
22
import { useIntl } from '@edx/frontend-platform/i18n';
3-
import { Container, Tab, Tabs } from '@openedx/paragon';
3+
import {
4+
Container, Skeleton, Tab, Tabs,
5+
} from '@openedx/paragon';
46
import { useLibrary } from '@src/authz-module/data/hooks';
57
import { useLocation } from 'react-router-dom';
68
import TeamTable from './components/TeamTable';
@@ -52,6 +54,7 @@ const LibrariesTeamManager = () => {
5254
</Tab>
5355
<Tab eventKey="roles" title={intl.formatMessage(messages['library.authz.tabs.roles'])}>
5456
<Container className="p-5">
57+
{!libraryRoles ? <Skeleton count={2} height={200} /> : null}
5558
{libraryRoles && libraryRoles.map(role => (
5659
<RoleCard
5760
key={`${role}-description`}

0 commit comments

Comments
 (0)