backup help
This commit is contained in:
parent
aefda6398b
commit
622f1aaa37
5 changed files with 41 additions and 25 deletions
|
@ -17,11 +17,9 @@ const Link = props => {
|
||||||
|
|
||||||
const className =
|
const className =
|
||||||
(props.className || "") +
|
(props.className || "") +
|
||||||
(!props.className && !props.button ? "button-text" : "") + // Non-button links get the same look as text buttons
|
(!props.className && !button ? "button-text" : "") + // Non-button links get the same look as text buttons
|
||||||
(props.button
|
(button ? " button-block button-" + button + " button-set-item" : "") +
|
||||||
? " button-block button-" + props.button + " button-set-item"
|
(disabled ? " disabled" : "");
|
||||||
: "") +
|
|
||||||
(props.disabled ? " disabled" : "");
|
|
||||||
|
|
||||||
let content;
|
let content;
|
||||||
if (children) {
|
if (children) {
|
||||||
|
|
|
@ -23,22 +23,28 @@ class BackupPage extends React.PureComponent {
|
||||||
<h3>{__("Backup Wallet")}</h3>
|
<h3>{__("Backup Wallet")}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
{__(
|
<p>
|
||||||
"Right now there is no automated procedure for backing up the wallet, but rest assured we are working on it(We do have a lot on our plates ^‿^)."
|
{__(
|
||||||
)}
|
"Currently, there is no automatic wallet backup, but it is fairly easy to back up manually."
|
||||||
{__(
|
)}
|
||||||
" But you can still back it up manually, by following the steps mentioned here."
|
</p>
|
||||||
)}
|
<p>
|
||||||
<Link
|
{__(
|
||||||
label={__("Backup LBRY wallet")}
|
"To backup your wallet, make a copy of the folder listed below:"
|
||||||
href="https://lbry.io/faq/how-to-backup-wallet"
|
)}
|
||||||
/>
|
</p>
|
||||||
</div>
|
<p>
|
||||||
<div className="card__content">
|
<code>
|
||||||
{__("Path of your wallet is: ")}
|
{__(`${daemonSettings.lbryum_wallet_dir}`)}
|
||||||
<span style={{ backgroundColor: "rgba(211, 211, 211, 0.49)" }}>
|
</code>
|
||||||
{__(`${daemonSettings.lbryum_wallet_dir}`)}
|
</p>
|
||||||
</span>
|
<p>
|
||||||
|
<strong>
|
||||||
|
{__(
|
||||||
|
"Access to these files are equivalent to having access to your credits. Keep any copies you make of your wallet in a secure place."
|
||||||
|
)}
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -1,5 +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 { selectCurrentPage } from "selectors/app";
|
import { selectCurrentPage } from "selectors/app";
|
||||||
import { selectBalance } from "selectors/wallet";
|
import { selectBalance } from "selectors/wallet";
|
||||||
import WalletPage from "./view";
|
import WalletPage from "./view";
|
||||||
|
@ -9,4 +10,8 @@ const select = state => ({
|
||||||
balance: selectBalance(state),
|
balance: selectBalance(state),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(select, null)(WalletPage);
|
const perform = dispatch => ({
|
||||||
|
navigate: path => dispatch(doNavigate(path)),
|
||||||
|
});
|
||||||
|
|
||||||
|
export default connect(select, perform)(WalletPage);
|
||||||
|
|
|
@ -3,11 +3,11 @@ import SubHeader from "component/subHeader";
|
||||||
import TransactionList from "component/transactionList";
|
import TransactionList from "component/transactionList";
|
||||||
import WalletAddress from "component/walletAddress";
|
import WalletAddress from "component/walletAddress";
|
||||||
import WalletSend from "component/walletSend";
|
import WalletSend from "component/walletSend";
|
||||||
|
import Link from "component/link";
|
||||||
import { CreditAmount } from "component/common";
|
import { CreditAmount } from "component/common";
|
||||||
|
|
||||||
const WalletPage = props => {
|
const WalletPage = props => {
|
||||||
const { balance, currentPage } = props;
|
const { balance, currentPage, navigate } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="main--single-column">
|
<main className="main--single-column">
|
||||||
|
@ -19,6 +19,14 @@ const WalletPage = props => {
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
<CreditAmount amount={balance} precision={8} />
|
<CreditAmount amount={balance} precision={8} />
|
||||||
</div>
|
</div>
|
||||||
|
<div className="card__content">
|
||||||
|
<div className="help">
|
||||||
|
<Link
|
||||||
|
onClick={() => navigate("/backup")}
|
||||||
|
label={__("Backup Your Wallet")}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{currentPage === "wallet" ? <TransactionList {...props} /> : ""}
|
{currentPage === "wallet" ? <TransactionList {...props} /> : ""}
|
||||||
{currentPage === "send" ? <WalletSend {...props} /> : ""}
|
{currentPage === "send" ? <WalletSend {...props} /> : ""}
|
||||||
|
|
|
@ -144,7 +144,6 @@ export const selectHeaderLinks = createSelector(selectCurrentPage, page => {
|
||||||
send: __("Send"),
|
send: __("Send"),
|
||||||
receive: __("Receive"),
|
receive: __("Receive"),
|
||||||
rewards: __("Rewards"),
|
rewards: __("Rewards"),
|
||||||
backup: __("Backup"),
|
|
||||||
};
|
};
|
||||||
case "downloaded":
|
case "downloaded":
|
||||||
case "published":
|
case "published":
|
||||||
|
|
Loading…
Reference in a new issue