1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

Add a first empty state to the discussion list

This commit is contained in:
Franz Liedke
2015-09-03 09:59:20 +02:00
parent e6dd1ffc4e
commit 588dc96685
4 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import Component from 'flarum/Component';
/**
* The `Placeholder` component displays a muted text with some call to action,
* usually used as an empty state.
*
* ### Props
*
* - `text`
*/
export default class Placeholder extends Component {
view() {
return (
<div className="Placeholder">
<p>{this.props.text}</p>
</div>
);
}
}