Skip to content

Commit

Permalink
feat(mespapiers): Replace spinner by skeletons on papers list
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Dec 7, 2023
1 parent fdf50a0 commit 2303501
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -4,7 +4,7 @@ import { useParams, Navigate } from 'react-router-dom'
import { isQueryLoading, useQueryAll, useQuery } from 'cozy-client'
import { getThemeByItem } from 'cozy-client/dist/models/document/documentTypeDataHelpers'
import flag from 'cozy-flags'
import { Spinner } from 'cozy-ui/transpiled/react/Spinner'
import ListSkeleton from 'cozy-ui/transpiled/react/Skeletons/ListSkeleton'

import { makeAccountsByFiles } from './helpers'
import {
Expand Down Expand Up @@ -100,10 +100,7 @@ const PapersList = () => {
selectedQualificationLabel={selectedQualificationLabel}
/>
{isLoading ? (
<Spinner
className="u-flex u-flex-justify-center u-mt-2 u-h-5"
size="xxlarge"
/>
<ListSkeleton count={6} />
) : (
<>
{hasFiles && (
Expand Down

0 comments on commit 2303501

Please sign in to comment.