+
+
{tt('transfer_jsx.gift_nft')}
+
+ {items}
+
+ }
+}
+
+export default connect(
+ (state, ownProps) => {
+ const opts = state.user.get('donate_defaults', Map()).toJS()
+
+ const currentUser = state.user.getIn(['current'])
+ const currentAccount = currentUser && state.global.getIn(['accounts', currentUser.get('username')])
+
+
+ return { ...ownProps,
+ currentUser,
+ currentAccount,
+ nft_tokens: state.global.get('nft_tokens'),
+ nft_assets: state.global.get('nft_assets'),
+ }
+ },
+ dispatch => ({
+ fetchNFTTokens: (currentUser) => {
+ if (!currentUser) return
+ const account = currentUser.get('username')
+ dispatch(g.actions.fetchNftTokens({ account }))
+ },
+ })
+)(GiftNFT)
diff --git a/app/components/modules/Modals.jsx b/app/components/modules/Modals.jsx
index de745b5b..980bea7f 100644
--- a/app/components/modules/Modals.jsx
+++ b/app/components/modules/Modals.jsx
@@ -7,6 +7,7 @@ import Reveal from 'react-foundation-components/lib/global/reveal';
import LoginForm from 'app/components/modules/LoginForm';
import ConfirmTransactionForm from 'app/components/modules/ConfirmTransactionForm';
import Donate from 'app/components/modules/Donate'
+import GiftNFT from 'app/components/modules/GiftNFT'
import SignUp from 'app/components/modules/SignUp'
import ChangeAccount from 'app/components/modules/ChangeAccount'
import AddAccount from 'app/components/modules/AddAccount'
@@ -22,6 +23,7 @@ class Modals extends React.Component {
show_login_modal: PropTypes.bool,
show_confirm_modal: PropTypes.bool,
show_donate_modal: PropTypes.bool,
+ show_gift_nft_modal: PropTypes.bool,
show_signup_modal: PropTypes.bool,
show_promote_post_modal: PropTypes.bool,
show_change_account_modal: PropTypes.bool,
@@ -53,12 +55,14 @@ class Modals extends React.Component {
show_login_modal,
show_confirm_modal,
show_donate_modal,
+ show_gift_nft_modal,
show_signup_modal,
show_change_account_modal,
show_add_account_modal,
show_app_download_modal,
hideLogin,
hideDonate,
+ hideGiftNFT,
hideConfirm,
hideSignUp,
hideChangeAccount,
@@ -89,6 +93,10 @@ class Modals extends React.Component {