parent
3854b8a689
commit
cb84e61d06
@ -57,6 +57,7 @@ export default class Token extends Component {
|
|||||||
isLoading: PropTypes.bool,
|
isLoading: PropTypes.bool,
|
||||||
isPending: PropTypes.bool,
|
isPending: PropTypes.bool,
|
||||||
isTokenOwner: PropTypes.bool.isRequired,
|
isTokenOwner: PropTypes.bool.isRequired,
|
||||||
|
isContractOwner: PropTypes.bool.isRequired,
|
||||||
|
|
||||||
fullWidth: PropTypes.bool
|
fullWidth: PropTypes.bool
|
||||||
};
|
};
|
||||||
@ -220,7 +221,7 @@ export default class Token extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderUnregister () {
|
renderUnregister () {
|
||||||
if (!this.props.isTokenOwner) {
|
if (!this.props.isContractOwner) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ export default class Tokens extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderTokens (tokens) {
|
renderTokens (tokens) {
|
||||||
const { accounts } = this.props;
|
const { accounts, isOwner } = this.props;
|
||||||
|
|
||||||
return tokens.map((token, index) => {
|
return tokens.map((token, index) => {
|
||||||
if (!token || !token.tla) {
|
if (!token || !token.tla) {
|
||||||
@ -61,7 +61,8 @@ export default class Tokens extends Component {
|
|||||||
handleMetaLookup={ this.props.handleMetaLookup }
|
handleMetaLookup={ this.props.handleMetaLookup }
|
||||||
handleAddMeta={ this.props.handleAddMeta }
|
handleAddMeta={ this.props.handleAddMeta }
|
||||||
key={ index }
|
key={ index }
|
||||||
isTokenOwner={ isTokenOwner } />
|
isTokenOwner={ isTokenOwner }
|
||||||
|
isContractOwner={ isOwner } />
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user