mirror of
https://github.com/franjsco/tick3t
synced 2024-12-28 02:11:32 +01:00
add MessageCard component
This commit is contained in:
parent
ec10f81903
commit
91f591205a
27
src/containers/MessageCard.js
Normal file
27
src/containers/MessageCard.js
Normal file
@ -0,0 +1,27 @@
|
||||
import React, { Component } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import Card from '../components/Card';
|
||||
|
||||
class MessageCard extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.state = {};
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<Card
|
||||
title={this.props.title}
|
||||
message={this.props.message}
|
||||
footer={<Link to="/">Go to home</Link>} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
export default MessageCard;
|
Loading…
Reference in New Issue
Block a user