Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/common/components/community-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ export class CommunityMenu extends Component<Props> {
}

render() {
const {community, match} = this.props;
const {filter, name} = match.params;
const { community, match, global } = this.props;
const { filter } = match.params;
const name = global.hive_id;

const menuConfig: {
history: History,
Expand Down
2 changes: 1 addition & 1 deletion src/common/components/landing-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const LandingPage = (props: any) => {
}, []);

return activeUser || (community && !time) ? (
<Redirect to={`/trending/${global.hive_id}`} />
<Redirect to={`/trending`} />
) : (
<div
className={global.isElectron ? "landing-wrapper pt-5" : "landing-wrapper"}
Expand Down
70 changes: 40 additions & 30 deletions src/common/components/user-nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,36 +217,46 @@ export default class UserNav extends Component<Props, State> {
};

return (
<>
<div className="user-nav">
{/* <PointsBadge activeUser={activeUser} /> */}

<WalletBadge activeUser={activeUser} dynamicProps={dynamicProps}/>

<ToolTip content={_t("user-nav.notifications")}>
<span className="notifications" onClick={this.toggleNotifications}>
{unread > 0 && (
<span className="notifications-badge notranslate">
{unread.toString().length < 3 ? unread : '...'}
</span>
)}
{global.notifications ? bellSvg : bellOffSvg}
</span>
</ToolTip>

<DropDown
{...dropDownConfig}
float="right"
header={`@${activeUser.username}`}
/>
</div>
{ui.notifications && <UserNotifications {...this.props} />}
{gallery && <Gallery {...this.props} onHide={this.toggleGallery}/>}
{drafts && <Drafts {...this.props} onHide={this.toggleDrafts}/>}
{bookmarks && <Bookmarks {...this.props} onHide={this.toggleBookmarks}/>}
{schedules && <Schedules {...this.props} onHide={this.toggleSchedules}/>}
{fragments && <Fragments {...this.props} onHide={this.toggleFragments}/>}
</>
<>
<div className="user-nav">
<PointsBadge activeUser={activeUser} />
<WalletBadge
activeUser={activeUser}
dynamicProps={dynamicProps}
/>
<ToolTip content={_t("user-nav.notifications")}>
<span
className="notifications"
onClick={this.toggleNotifications}
>
{unread > 0 && (
<span className="notifications-badge notranslate">
{unread.toString().length < 3 ? unread : "..."}
</span>
)}
{global.notifications ? bellSvg : bellOffSvg}
</span>
</ToolTip>

<DropDown
{...dropDownConfig}
float="right"
header={`@${activeUser.username}`}
/>
</div>
{ui.notifications && <UserNotifications {...this.props} />}
{gallery && <Gallery {...this.props} onHide={this.toggleGallery} />}
{drafts && <Drafts {...this.props} onHide={this.toggleDrafts} />}
{bookmarks && (
<Bookmarks {...this.props} onHide={this.toggleBookmarks} />
)}
{schedules && (
<Schedules {...this.props} onHide={this.toggleSchedules} />
)}
{fragments && (
<Fragments {...this.props} onHide={this.toggleFragments} />
)}
</>
);
}
}
Loading