Update UI around Empty Message

This commit is contained in:
Justin
2022-06-22 11:20:29 -04:00
parent 1f3785c920
commit 14a9a2f4eb
13 changed files with 48 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ import PullToRefresh from 'soapbox/components/pull-to-refresh';
import { useSettings } from 'soapbox/hooks';
import LoadMore from './load_more';
import { Spinner, Text } from './ui';
import { Card, Spinner, Text } from './ui';
/** Custom Viruoso component context. */
type Context = {
@@ -157,13 +157,13 @@ const ScrollableList = React.forwardRef<VirtuosoHandle, IScrollableList>(({
<div className='mt-2'>
{alwaysPrepend && prepend}
<div className='bg-primary-50 dark:bg-slate-700 mt-2 rounded-lg text-center p-8'>
<Card variant='rounded' size='lg'>
{isLoading ? (
<Spinner />
) : (
<Text>{emptyMessage}</Text>
)}
</div>
</Card>
</div>
);
};