fix imports, remove unused code
This commit is contained in:
parent
f6976c3feb
commit
4b759412c1
9 changed files with 5 additions and 35 deletions
|
@ -1,6 +1,6 @@
|
|||
import React from "react";
|
||||
import { connect } from "react-redux";
|
||||
import { doNavigate } from "actions/app";
|
||||
import { doNavigate } from "actions/navigation";
|
||||
import Link from "./view";
|
||||
|
||||
const perform = dispatch => ({
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import React from "react";
|
||||
import { connect } from "react-redux";
|
||||
import { doNavigate } from "actions/app";
|
||||
import { selectUnclaimedRewardValue } from "selectors/rewards";
|
||||
import RewardSummary from "./view";
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ import React from "react";
|
|||
import SettingsPage from "page/settings";
|
||||
import HelpPage from "page/help";
|
||||
import ReportPage from "page/report.js";
|
||||
import StartPage from "page/start.js";
|
||||
import WalletPage from "page/wallet";
|
||||
import ReceiveCreditsPage from "page/receiveCredits";
|
||||
import SendCreditsPage from "page/sendCredits";
|
||||
|
@ -48,7 +47,6 @@ const Router = props => {
|
|||
send: <SendCreditsPage params={params} />,
|
||||
settings: <SettingsPage params={params} />,
|
||||
show: <ShowPage params={params} />,
|
||||
start: <StartPage params={params} />,
|
||||
wallet: <WalletPage params={params} />,
|
||||
});
|
||||
};
|
||||
|
|
|
@ -70,13 +70,6 @@ win.on("focus", () => {
|
|||
dock.setBadge("");
|
||||
});
|
||||
|
||||
const updateProgress = () => {
|
||||
const state = app.store.getState();
|
||||
const progress = selectTotalDownloadProgress(state);
|
||||
|
||||
win.setProgressBar(progress || -1);
|
||||
};
|
||||
|
||||
const initialState = app.store.getState();
|
||||
|
||||
var init = function() {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import React from "react";
|
||||
import { connect } from "react-redux";
|
||||
import { doCloseModal, doAuthNavigate } from "actions/app";
|
||||
import { doCloseModal } from "actions/app";
|
||||
import { doAuthNavigate } from "actions/navigation";
|
||||
import ModalRewardApprovalRequired from "./view";
|
||||
|
||||
const perform = dispatch => ({
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
import React from "react";
|
||||
import lbry from "../lbry.js";
|
||||
|
||||
class StartPage extends React.PureComponent {
|
||||
componentWillMount() {
|
||||
lbry.stop();
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<main className="main--single-column">
|
||||
<h3>{__("LBRY is Closed")}</h3>
|
||||
<Link href="lbry://lbry" label={__("Click here to start LBRY")} />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default StartPage;
|
|
@ -71,8 +71,6 @@ export const selectPageTitle = createSelector(
|
|||
return __("Backup");
|
||||
case "rewards":
|
||||
return __("Rewards");
|
||||
case "start":
|
||||
return __("Start");
|
||||
case "publish":
|
||||
return __("Publish");
|
||||
case "help":
|
||||
|
|
|
@ -52,8 +52,6 @@ export const selectWunderBarIcon = createSelector(selectCurrentPage, page => {
|
|||
return "icon-folder";
|
||||
case "published":
|
||||
return "icon-folder";
|
||||
case "start":
|
||||
return "icon-file";
|
||||
case "history":
|
||||
return "icon-history";
|
||||
case "send":
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@import "../global";
|
||||
|
||||
video {
|
||||
object-fit: contain;
|
||||
box-sizing: border-box;
|
||||
|
|
Loading…
Add table
Reference in a new issue