feat(web): add desktop mini chat and move social controls to profile
ci / ts / ts (packages + web) (push) Successful in 4m55s
ci / mobile / mobile (Metro-бандл Android) (push) Successful in 1m37s

This commit is contained in:
mrleo1nid committed 2026-10-23 18:37:32 +03:00
1 parent f087ec9f88
commit 6450027b88
10 files changed
+259 -44

No files matched your search

+6 -1
View File
@@ -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>