feat: add Nori mascot to mobile empty states
This commit is contained in:
@@ -5,6 +5,7 @@ import { useChatStore } from '../../stores/chatStore';
|
||||
import { useAuthStore } from '../../stores/authStore';
|
||||
import { useSocialStore } from '../../stores/socialStore';
|
||||
import { Avatar } from '../ui/Avatar';
|
||||
import { Mascot } from '../ui/Mascot';
|
||||
import { resolveAssetUrl } from '../../utils/assetUrls';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
|
||||
@@ -180,8 +181,9 @@ export function MobileDmsScreen() {
|
||||
})}
|
||||
|
||||
{sortedDms.length === 0 && (
|
||||
<div className="flex flex-col items-center justify-center h-40 text-txt-tertiary text-sm">
|
||||
No conversations yet
|
||||
<div className="flex flex-col items-center justify-center h-40 opacity-80">
|
||||
<Mascot state="sleeping" className="w-20 h-20 mb-2" />
|
||||
<p className="text-txt-tertiary text-sm">No conversations yet.</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -8,6 +8,7 @@ import { useNavigate } from 'react-router-dom';
|
||||
import { getSpaceGradient } from '../../utils/gradients';
|
||||
import { hasPermissionBit, PermissionBits } from '../../utils/permissions';
|
||||
import type { Channel } from '@backspace/shared';
|
||||
import { Mascot } from '../ui/Mascot';
|
||||
|
||||
export function MobileSpacesScreen() {
|
||||
const spaces = useSpaceStore((s) => s.spaces);
|
||||
@@ -308,8 +309,9 @@ export function MobileSpacesScreen() {
|
||||
|
||||
{/* Empty state */}
|
||||
{spaceChannels.length === 0 && selectedSpaceId && (
|
||||
<div className="flex items-center justify-center h-32 text-txt-tertiary text-sm">
|
||||
No channels yet
|
||||
<div className="flex flex-col items-center justify-center h-32 opacity-80">
|
||||
<Mascot state="idle" className="w-20 h-20 mb-2" />
|
||||
<p className="text-txt-tertiary text-sm">No channels yet.</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user