diff --git a/src/common/components/Sidebar/RightSidebar.tsx b/src/common/components/Sidebar/RightSidebar.tsx
index 6e9971fa..53740e2b 100644
--- a/src/common/components/Sidebar/RightSidebar.tsx
+++ b/src/common/components/Sidebar/RightSidebar.tsx
@@ -42,7 +42,10 @@ const RightSidebar = ({ showFeeds, showSearches, showLists, showManageLists, sho
const renderAuthorInfo = () => {
if (!showAuthorInfo || !selectedCast) return null;
- if (selectedAccount?.platformAccountId === selectedCast.author.fid.toString()) {
+ if (
+ !selectedAccount?.platformAccountId ||
+ selectedAccount?.platformAccountId === selectedCast.author.fid.toString()
+ ) {
return null;
}
diff --git a/src/home/index.tsx b/src/home/index.tsx
index 2ef770d7..47b73e6b 100644
--- a/src/home/index.tsx
+++ b/src/home/index.tsx
@@ -162,56 +162,56 @@ const Home = ({ children }: { children: React.ReactNode }) => {
{
name: 'main',
items: [
- // {
- // name: 'Feeds',
- // router: '/feeds',
- // icon: ,
- // getTitle: getFeedTitle,
- // getHeaderActions: () => {
- // const isChannelPinned = channels.findIndex((channel) => channel.url === selectedChannelUrl) !== -1;
- // const isChannelFeed =
- // selectedChannelUrl !== CUSTOM_CHANNELS.FOLLOWING &&
- // selectedChannelUrl !== CUSTOM_CHANNELS.TRENDING &&
- // !selectedList;
- // const actions = [
- // {
- // name: 'Cast',
- // onClick: () => {
- // let parentUrl;
- // if (isChannelFeed) {
- // parentUrl = selectedChannelUrl;
- // }
- // setCastModalView(CastModalView.New);
- // addNewPostDraft({
- // parentUrl,
- // onSuccess(draftId) {
- // setCastModalDraftId(draftId);
- // openNewCastModal();
- // },
- // });
- // },
- // },
- // ];
- // if (isChannelFeed) {
- // actions.push({
- // name: isChannelPinned ? 'Unpin' : 'Pin',
- // onClick: () => {
- // const channel = channels.find((c) => c.url === selectedChannelUrl);
- // if (!channel) return;
+ {
+ name: 'Feeds',
+ router: '/feeds',
+ icon: ,
+ getTitle: getFeedTitle,
+ getHeaderActions: () => {
+ const isChannelPinned = channels.findIndex((channel) => channel.url === selectedChannelUrl) !== -1;
+ const isChannelFeed =
+ selectedChannelUrl !== CUSTOM_CHANNELS.FOLLOWING &&
+ selectedChannelUrl !== CUSTOM_CHANNELS.TRENDING &&
+ !selectedList;
+ const actions = [
+ {
+ name: 'Cast',
+ onClick: () => {
+ let parentUrl;
+ if (isChannelFeed) {
+ parentUrl = selectedChannelUrl;
+ }
+ setCastModalView(CastModalView.New);
+ addNewPostDraft({
+ parentUrl,
+ onSuccess(draftId) {
+ setCastModalDraftId(draftId);
+ openNewCastModal();
+ },
+ });
+ },
+ },
+ ];
+ if (isChannelFeed) {
+ actions.push({
+ name: isChannelPinned ? 'Unpin' : 'Pin',
+ onClick: () => {
+ const channel = channels.find((c) => c.url === selectedChannelUrl);
+ if (!channel) return;
- // if (isChannelPinned) {
- // removePinnedChannel(channel);
- // } else {
- // addPinnedChannel(channel);
- // }
- // },
- // });
- // }
- // return actions;
- // },
- // shortcut: 'Shift + F',
- // additionalPaths: ['/conversation/[...slug]'],
- // },
+ if (isChannelPinned) {
+ removePinnedChannel(channel);
+ } else {
+ addPinnedChannel(channel);
+ }
+ },
+ });
+ }
+ return actions;
+ },
+ shortcut: 'Shift + F',
+ additionalPaths: ['/conversation/[...slug]'],
+ },
{
name: 'Post',
router: '/post',
@@ -229,24 +229,24 @@ const Home = ({ children }: { children: React.ReactNode }) => {
],
icon: ,
},
- // {
- // name: 'Search',
- // router: '/search',
- // icon: ,
- // shortcut: '/',
- // },
+ {
+ name: 'Search',
+ router: '/search',
+ icon: ,
+ shortcut: '/',
+ },
// {
// name: 'Notifications',
// router: '/notifications',
// icon: ,
// shortcut: 'Shift + N',
// },
- {
- name: 'Analytics',
- router: '/analytics',
- icon: ,
- shortcut: 'Shift + A',
- },
+ // {
+ // name: 'Analytics',
+ // router: '/analytics',
+ // icon: ,
+ // shortcut: 'Shift + A',
+ // },
{
name: 'Profile',
router: '/profile',