add back pinned sidebar links

This commit is contained in:
Sean Yesmunt 2020-09-22 18:24:34 -04:00
parent 2b252731d3
commit 51214bd246
2 changed files with 21 additions and 2 deletions

View file

@ -23,10 +23,10 @@
"compile:electron": "node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --config webpack.electron.config.js",
"compile:web": "yarn copyenv && cd web && node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --config webpack.config.js",
"compile": "cross-env NODE_ENV=production yarn compile:electron && cross-env NODE_ENV=production yarn compile:web",
"copyenv": "cp ./.env* web/",
"copyenv": "rm -r ./web/.env* && cp ./.env* web/",
"dev": "yarn dev:electron",
"dev:electron": "cross-env NODE_ENV=development node ./electron/devServer.js",
"dev:web": "cd web && yarn dev",
"dev:web": "yarn copyenv && cd web && yarn dev",
"dev:web-server": "cross-env NODE_ENV=development yarn compile:web && concurrently \"cross-env NODE_ENV=development yarn compile:web --watch\" \"cd web && yarn dev:server\"",
"dev:internal-apis": "LBRY_API_URL='http://localhost:8080' yarn dev:electron",
"dev:iatv": "LBRY_API_URL='http://localhost:15400' SDK_API_URL='http://localhost:15100' yarn dev:web",

View file

@ -6,6 +6,7 @@ import React from 'react';
import Button from 'component/button';
import classnames from 'classnames';
import NotificationBubble from 'component/notificationBubble';
import { PINNED_LABEL_1, PINNED_URI_1, PINNED_URI_2, PINNED_LABEL_2 } from 'config';
// @if TARGET='app'
import { IS_MAC } from 'component/app/view';
// @endif
@ -83,6 +84,24 @@ function SideNavigation(props: Props) {
icon: ICONS.PURCHASED,
hideForUnauth: true,
},
{
...(PINNED_URI_1 && PINNED_LABEL_1
? {
label: PINNED_LABEL_1,
navigate: PINNED_URI_1,
icon: ICONS.PINNED,
}
: {}),
},
{
...(PINNED_URI_2 && PINNED_LABEL_2
? {
label: PINNED_LABEL_2,
navigate: PINNED_URI_2,
icon: ICONS.PINNED,
}
: {}),
},
];
const ABSOLUTE_LINKS: Array<{