How to use alt-react - 10 common examples

To help you get started, we’ve selected a few alt-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bitshares / bitshares-ui / app / components / Wallet / Brainkey.jsx View on Github external
BrainkeyStoreFactory.closeInstance("wmc");
    }
    render() {
        return (
            <span>
                <h3>
                    
                </h3>
                
                    
                
            </span>
        );
    }
}
Brainkey = connect(Brainkey, connectObject);
export default Brainkey;

class ViewBrainkey extends Component {
    render() {
        let short_brnkey = this.props.brnkey.substring(0, 10);
        // console.log("this.props.account_ids.toArray()", this.props.account_ids.toArray())
        return (
            <span>
                <div>
                    <span>{short_brnkey}</span></div>
                <p>
                {this.props.account_ids.size ? (
                    </p></span>
github bitshares / bitshares-ui / app / components / Wallet / BalanceClaimAssetTotal.jsx View on Github external
.map((total, asset_id) =&gt; (
                        <div>
                            
                        </div>
                    ))
                    .toArray()}
            
        );
    }
}

BalanceClaimAssetTotals = connect(BalanceClaimAssetTotals, {
    listenTo() {
        return [BalanceClaimActiveStore];
    },
    getProps() {
        return BalanceClaimActiveStore.getState();
    }
});

export default BalanceClaimAssetTotals;
github bitshares / bitshares-ui / web / app / components / Explorer / CommitteeMembers.jsx View on Github external
);
    }
}
CommitteeMembers = BindToChainState(CommitteeMembers, {keep_updating: true});

class CommitteeMembersStoreWrapper extends React.Component {
    render () {
        return ;
    }
}

CommitteeMembersStoreWrapper = connect(CommitteeMembersStoreWrapper, {
    listenTo() {
        return [SettingsStore];
    },
    getProps() {
        return {
            cardView: SettingsStore.getState().viewSettings.get("cardViewCommittee"),
            filterCommitteeMember: SettingsStore.getState().viewSettings.get("filterCommitteeMember"),
        };
    }
});

export default CommitteeMembersStoreWrapper;
github bitshares / bitshares-ui / app / components / Wallet / BalanceClaimActive.jsx View on Github external
} catch (e) {}
            Notification.error({
                message: counterpart.translate(
                    "notifications.balance_claim_error",
                    {
                        error_msg: message
                    }
                )
            });

            throw error;
        });
    }
}

BalanceClaimActive = connect(
    BalanceClaimActive,
    {
        listenTo() {
            return [BalanceClaimActiveStore, AccountRefsStore, PrivateKeyStore];
        },
        getProps() {
            let props = BalanceClaimActiveStore.getState();
            props.account_refs = AccountRefsStore.getAccountRefs();
            return props;
        }
    }
);

export default BalanceClaimActive;
github bitshares / bitshares-ui / web / app / components / Explorer / Witnesses.jsx View on Github external
);
    }
}
Witnesses = BindToChainState(Witnesses, {keep_updating: true});

class WitnessStoreWrapper extends React.Component {
    render () {
        return ;
    }
}

WitnessStoreWrapper = connect(WitnessStoreWrapper, {
    listenTo() {
        return [SettingsStore];
    },
    getProps() {
        return {
            cardView: SettingsStore.getState().viewSettings.get("cardView"),
            filterWitness: SettingsStore.getState().viewSettings.get("filterWitness")
        };
    }
});

export default WitnessStoreWrapper;
github bitshares / bitshares-ui / web / app / components / Chat / Chat.jsx View on Github external
);
    }
}

class SettingsContainer extends React.Component {

    render() {
        if (!this.props.accountsReady) return null;
        return ;
    }
}

export default connect(SettingsContainer, {
    listenTo() {
        return [AccountStore, SettingsStore];
    },
    getProps() {
        return {
            currentAccount: AccountStore.getState().currentAccount,
            linkedAccounts: AccountStore.getState().linkedAccounts,
            viewSettings: SettingsStore.getState().viewSettings,
            accountsReady: AccountStore.getState().accountsLoaded &amp;&amp; AccountStore.getState().refsLoaded
        };
    }
});
github gxchain / gxchain-light / web / app / components / Chat / Chat.jsx View on Github external
);
    }
}

class SettingsContainer extends React.Component {

    render() {
        if (!this.props.accountsReady) return null;
        return ;
    }
}

export default connect(SettingsContainer, {
    listenTo() {
        return [AccountStore, SettingsStore];
    },
    getProps() {
        return {
            currentAccount: AccountStore.getState().currentAccount,
            linkedAccounts: AccountStore.getState().linkedAccounts,
            viewSettings: SettingsStore.getState().viewSettings,
            accountsReady: AccountStore.getState().accountsLoaded &amp;&amp; AccountStore.getState().refsLoaded
        };
    }
});
github gxchain / gxchain-light / web / app / components / Account / CreateAccount.jsx View on Github external
this._renderGetStarted()
                        }
                    

                    <div>
                        {step === 1 ? this._renderAccountCreateText() : step === 2 ? this._renderBackupText() :
                            this._renderGetStartedText()
                        }
                    </div>
                
            
        );
    }
}

export default connect(CreateAccount, {
    listenTo() {
        return [AccountStore];
    },
    getProps() {
        return {};
    }
});
github gxchain / gxchain-light / app / components / Account / CreateAccount.jsx View on Github external
this._renderGetStarted()
                        }
                    

                    <div>
                        {step === 1 ? this._renderAccountCreateText() : step === 2 ? this._renderBackupText() :
                            this._renderGetStartedText()
                        }
                    </div>
                
            
        );
    }
}

export default connect(CreateAccount, {
    listenTo() {
        return [AccountStore];
    },
    getProps() {
        return {};
    }
});
github bitshares / bitshares-ui / app / components / Modal / WithdrawModalNew.jsx View on Github external
}
            });
        });

        return (
            
        );
    }
}

const ConnectedWrapper = connect(BindToChainState(WithdrawModalWrapper), {
    listenTo() {
        return [AccountStore];
    },
    getProps() {
        return {
            account: AccountStore.getState().currentAccount
        };
    }
});

export default class WithdrawModal extends React.Component {
    constructor() {
        super();

        this.state = {open: false};
    }

alt-react

Connect flux to react

MIT
Latest version published 9 years ago

Package Health Score

40 / 100
Full package analysis

Popular alt-react functions