update matched table styles, add loading animation for some blocks
This commit is contained in:
@@ -125,6 +125,16 @@ export default function DashboardUserFiles() {
|
||||
</div>
|
||||
|
||||
<div className="user-files-list">
|
||||
{isLoading && (
|
||||
<div
|
||||
className="loading-animation"
|
||||
>
|
||||
<div
|
||||
className="global-spinner"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{tableData?.length ? (
|
||||
tableData?.map((file) => {
|
||||
@@ -151,9 +161,11 @@ export default function DashboardUserFiles() {
|
||||
)
|
||||
})
|
||||
) : (
|
||||
<div>
|
||||
{t('there-are-no-files-yet')}
|
||||
</div>
|
||||
!isLoading && (
|
||||
<div>
|
||||
{t('there-are-no-files-yet')}
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -65,6 +65,16 @@ export default function DashboardUserViolations() {
|
||||
</div>
|
||||
|
||||
<div className="user-files-list">
|
||||
{isLoading && (
|
||||
<div
|
||||
className="loading-animation"
|
||||
>
|
||||
<div
|
||||
className="global-spinner"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{violationData?.length ? (
|
||||
violationData?.map((file) => {
|
||||
@@ -94,9 +104,11 @@ export default function DashboardUserViolations() {
|
||||
)
|
||||
})
|
||||
) : (
|
||||
<div>
|
||||
{t('there-are-no-files-yet')}
|
||||
</div>
|
||||
!isLoading && (
|
||||
<div>
|
||||
{t('there-are-no-files-yet')}
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user