feat(web): add desktop mini chat and move social controls to profile
This commit is contained in:
1 parent
f087ec9f88
commit
6450027b88
10 files changed
+259
-44
No files matched your search
@@ -38,7 +38,8 @@ import { PlayerBar } from './PlayerBar';
|
||||
import { SearchBox } from './SearchBox';
|
||||
import s from './AppShell.module.css';
|
||||
import { DesktopUpdateDialog, DesktopOfflineBanner } from '../features/desktop/DesktopFeatures';
|
||||
import { useSocialUnread, SocialProvider } from '../features/social/Social';
|
||||
import { useSocialUnread, useSocialProfileMenu, SocialProvider } from '../features/social/Social';
|
||||
import { MiniSocial } from '../features/social/MiniSocial';
|
||||
import { ListeningBanner } from '../features/social/Listening';
|
||||
|
||||
type NavPath =
|
||||
@@ -164,6 +165,7 @@ function Shell() {
|
||||
const { t } = useTranslation();
|
||||
const user = useUser();
|
||||
const socialUnread = useSocialUnread();
|
||||
const socialProfile = useSocialProfileMenu();
|
||||
const session = useSession();
|
||||
const desktop = useDesktop();
|
||||
const navigate = useNavigate();
|
||||
@@ -270,6 +272,7 @@ function Shell() {
|
||||
</div>
|
||||
}
|
||||
items={[
|
||||
...socialProfile.items,
|
||||
{ label: t('profile.settings'), icon: settingsIcon, onSelect: () => void navigate({ to: '/settings' }) },
|
||||
...(!desktop
|
||||
? [{ label: t('profile.download_apps'), icon: downloadIcon, onSelect: () => void navigate({ to: '/download' }) }]
|
||||
@@ -301,7 +304,9 @@ function Shell() {
|
||||
</Dialog>
|
||||
)}
|
||||
|
||||
{socialProfile.dialogs}
|
||||
<ShellMain />
|
||||
<MiniSocial />
|
||||
|
||||
<PlayerBar variant={island ? 'island' : 'bar'} />
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user