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 React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { doNavigate } from "actions/app";
|
import { doNavigate } from "actions/navigation";
|
||||||
import Link from "./view";
|
import Link from "./view";
|
||||||
|
|
||||||
const perform = dispatch => ({
|
const perform = dispatch => ({
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { doNavigate } from "actions/app";
|
|
||||||
import { selectUnclaimedRewardValue } from "selectors/rewards";
|
import { selectUnclaimedRewardValue } from "selectors/rewards";
|
||||||
import RewardSummary from "./view";
|
import RewardSummary from "./view";
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ import React from "react";
|
||||||
import SettingsPage from "page/settings";
|
import SettingsPage from "page/settings";
|
||||||
import HelpPage from "page/help";
|
import HelpPage from "page/help";
|
||||||
import ReportPage from "page/report.js";
|
import ReportPage from "page/report.js";
|
||||||
import StartPage from "page/start.js";
|
|
||||||
import WalletPage from "page/wallet";
|
import WalletPage from "page/wallet";
|
||||||
import ReceiveCreditsPage from "page/receiveCredits";
|
import ReceiveCreditsPage from "page/receiveCredits";
|
||||||
import SendCreditsPage from "page/sendCredits";
|
import SendCreditsPage from "page/sendCredits";
|
||||||
|
@ -48,7 +47,6 @@ const Router = props => {
|
||||||
send: <SendCreditsPage params={params} />,
|
send: <SendCreditsPage params={params} />,
|
||||||
settings: <SettingsPage params={params} />,
|
settings: <SettingsPage params={params} />,
|
||||||
show: <ShowPage params={params} />,
|
show: <ShowPage params={params} />,
|
||||||
start: <StartPage params={params} />,
|
|
||||||
wallet: <WalletPage params={params} />,
|
wallet: <WalletPage params={params} />,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -70,13 +70,6 @@ win.on("focus", () => {
|
||||||
dock.setBadge("");
|
dock.setBadge("");
|
||||||
});
|
});
|
||||||
|
|
||||||
const updateProgress = () => {
|
|
||||||
const state = app.store.getState();
|
|
||||||
const progress = selectTotalDownloadProgress(state);
|
|
||||||
|
|
||||||
win.setProgressBar(progress || -1);
|
|
||||||
};
|
|
||||||
|
|
||||||
const initialState = app.store.getState();
|
const initialState = app.store.getState();
|
||||||
|
|
||||||
var init = function() {
|
var init = function() {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { connect } from "react-redux";
|
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";
|
import ModalRewardApprovalRequired from "./view";
|
||||||
|
|
||||||
const perform = dispatch => ({
|
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");
|
return __("Backup");
|
||||||
case "rewards":
|
case "rewards":
|
||||||
return __("Rewards");
|
return __("Rewards");
|
||||||
case "start":
|
|
||||||
return __("Start");
|
|
||||||
case "publish":
|
case "publish":
|
||||||
return __("Publish");
|
return __("Publish");
|
||||||
case "help":
|
case "help":
|
||||||
|
|
|
@ -52,8 +52,6 @@ export const selectWunderBarIcon = createSelector(selectCurrentPage, page => {
|
||||||
return "icon-folder";
|
return "icon-folder";
|
||||||
case "published":
|
case "published":
|
||||||
return "icon-folder";
|
return "icon-folder";
|
||||||
case "start":
|
|
||||||
return "icon-file";
|
|
||||||
case "history":
|
case "history":
|
||||||
return "icon-history";
|
return "icon-history";
|
||||||
case "send":
|
case "send":
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "../global";
|
||||||
|
|
||||||
video {
|
video {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
Loading…
Add table
Reference in a new issue