Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
key={token.index}
token={token.gradient}
onClick={() => showModal()}
/>
))}
) : (
<div>You don't have tokens yet.</div>
)}
);
};
TokensList.propTypes = {
gradientTokenStore: PropTypes.shape({
tokens: MobxPropTypes.arrayOrObservableArrayOf(PropTypes.object)
}),
modalStore: PropTypes.shape({
showModal: PropTypes.func
})
};
export default inject("gradientTokenStore", "modalStore")(observer(TokensList));
key={token.index}
token={token.gradient}
onClick={() => showModal()}
/>
))}
) : (
<div>You don't have tokens yet.</div>
)}
);
};
TokensList.propTypes = {
gradientTokenStore: PropTypes.shape({
tokens: MobxPropTypes.arrayOrObservableArrayOf(PropTypes.object)
}),
modalStore: PropTypes.shape({
showModal: PropTypes.func
})
};
export default inject("gradientTokenStore", "modalStore")(observer(TokensList));