message.js 555 B

1234567891011121314151617181920212223
  1. import React from "react"
  2. import Container from "./container"
  3. import posting from "misago/services/posting"
  4. export default function(props) {
  5. return (
  6. <Container className="posting-message">
  7. <div className="message-body">
  8. <p>
  9. <span className="material-icon">error_outline</span>
  10. {props.message}
  11. </p>
  12. <button
  13. type="button"
  14. className="btn btn-default"
  15. onClick={posting.close}
  16. >
  17. {gettext("Dismiss")}
  18. </button>
  19. </div>
  20. </Container>
  21. )
  22. }