2019-12-08 22:43:49 +01:00
|
|
|
/** @jsx React.DOM */
|
|
|
|
|
2022-10-08 20:37:38 +02:00
|
|
|
var Card = createReactClass({
|
2019-12-08 22:43:49 +01:00
|
|
|
render: function() {
|
|
|
|
return (
|
|
|
|
<div className="card">{
|
|
|
|
this.props.number.substring(0, 4) +
|
|
|
|
' ' +
|
|
|
|
this.props.number.substring(4, 8) +
|
|
|
|
' ' +
|
|
|
|
this.props.number.substring(8, 12) +
|
|
|
|
' ' +
|
|
|
|
this.props.number.substring(12, 16)
|
|
|
|
}</div>
|
|
|
|
);
|
|
|
|
},
|
|
|
|
});
|