Commit 434e820e authored by / /\ / /\/'s avatar / /\ / /\/
Browse files

add communities to wallet submenu and add localized string

parent 3f7e18ef
......@@ -2,7 +2,7 @@ import GDPRUserList from './utils/GDPRUserList';
export const routeRegex = {
UserProfile1: /^\/(@[\w\.\d-]+)\/?$/,
UserProfile2: /^\/(@[\w\.\d-]+)\/(transfers|curation-rewards|author-rewards|permissions|password|settings)\/?$/,
UserProfile2: /^\/(@[\w\.\d-]+)\/(transfers|curation-rewards|author-rewards|permissions|communities|password|settings)\/?$/,
};
export default function resolveRoute(path) {
......
......@@ -33,6 +33,16 @@ export default ({ accountname, isMyAccount }) => {
</Link>
</li>
) : null}
{isMyAccount ? (
<li>
<Link
to={`/@${accountname}/communities`}
activeClassName="active"
>
{tt('g.communities')}
</Link>
</li>
) : null}
</ul>
);
};
......@@ -21,6 +21,7 @@
"close": "Close",
"collapse_or_expand": "Collapse/Expand",
"comments": "Comments",
"communities": "Communities",
"confirm": "Confirm",
"convert": "Convert",
"date": "Date",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment