Main Menu: My Stories → My Profile
This commit is contained in:
parent
4487370790
commit
88ebd32335
@ -94,6 +94,10 @@ const LeftSideMenuItems = ({
|
|||||||
|
|
||||||
const bots = useMemo(() => Object.values(attachBots).filter((bot) => bot.isForSideMenu), [attachBots]);
|
const bots = useMemo(() => Object.values(attachBots).filter((bot) => bot.isForSideMenu), [attachBots]);
|
||||||
|
|
||||||
|
const handleSelectMyProfile = useLastCallback(() => {
|
||||||
|
openChatWithInfo({ id: currentUserId, shouldReplaceHistory: true, profileTab: 'stories' });
|
||||||
|
});
|
||||||
|
|
||||||
const handleSelectSaved = useLastCallback(() => {
|
const handleSelectSaved = useLastCallback(() => {
|
||||||
openChat({ id: currentUserId, shouldReplaceHistory: true });
|
openChat({ id: currentUserId, shouldReplaceHistory: true });
|
||||||
});
|
});
|
||||||
@ -137,10 +141,6 @@ const LeftSideMenuItems = ({
|
|||||||
openUrl({ url: FEEDBACK_URL });
|
openUrl({ url: FEEDBACK_URL });
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleOpenMyStories = useLastCallback(() => {
|
|
||||||
openChatWithInfo({ id: currentUserId, shouldReplaceHistory: true, profileTab: 'stories' });
|
|
||||||
});
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{IS_MULTIACCOUNT_SUPPORTED && currentUser && (
|
{IS_MULTIACCOUNT_SUPPORTED && currentUser && (
|
||||||
@ -153,6 +153,12 @@ const LeftSideMenuItems = ({
|
|||||||
<MenuSeparator />
|
<MenuSeparator />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
<MenuItem
|
||||||
|
icon="user"
|
||||||
|
onClick={handleSelectMyProfile}
|
||||||
|
>
|
||||||
|
{oldLang('My Profile')}
|
||||||
|
</MenuItem>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon="saved-messages"
|
icon="saved-messages"
|
||||||
onClick={handleSelectSaved}
|
onClick={handleSelectSaved}
|
||||||
@ -171,7 +177,7 @@ const LeftSideMenuItems = ({
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
)}
|
)}
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon="user"
|
icon="group"
|
||||||
onClick={onSelectContacts}
|
onClick={onSelectContacts}
|
||||||
>
|
>
|
||||||
{oldLang('Contacts')}
|
{oldLang('Contacts')}
|
||||||
@ -186,12 +192,6 @@ const LeftSideMenuItems = ({
|
|||||||
onMenuClosed={onBotMenuClosed}
|
onMenuClosed={onBotMenuClosed}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
<MenuItem
|
|
||||||
icon="play-story"
|
|
||||||
onClick={handleOpenMyStories}
|
|
||||||
>
|
|
||||||
{oldLang('Settings.MyStories')}
|
|
||||||
</MenuItem>
|
|
||||||
<MenuItem
|
<MenuItem
|
||||||
icon="settings"
|
icon="settings"
|
||||||
onClick={onSelectSettings}
|
onClick={onSelectSettings}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user