Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value: function renderCardTags(item) {
var _this2 = this;
if (!item.tags) {
return _react2.default.createElement('div', null);
}
return _react2.default.createElement(
'div',
{ style: { display: 'flex', alignItems: 'center' } },
_react2.default.createElement(
_chip.ChipSet,
{ style: { flex: 2 } },
item.tags.map(function (t) {
return _this2.renderCardTag(t);
})
)
);
}
}, {
var margin = this.props.isSmallScreen ? '5' : '20';
var width = this.props.isSmallScreen ? '30' : '50';
var height = this.props.isSmallScreen ? '140' : '50';
var typographyStyle = { margin: margin + 'px', color: '#fff' };
var style = {
border: '2px solid #4ebcd4',
backgroundColor: '#fff',
color: "#4ebcd4",
padding: 2,
width: width,
height: 40
};
return _react2.default.createElement(
_chip.ChipSet,
null,
_react2.default.createElement(
_chip.Chip,
{ style: style },
_react2.default.createElement(
_typography.Typography,
{ use: size, style: typographyStyle },
_react2.default.createElement(
_chip.ChipText,
{ style: { marginLeft: 5, color: '#4ebcd4' } },
days,
'd'
)
)
),
_react2.default.createElement(