From 45c44989c8fb6e24badd18bb83ac5f68de0aceaf Mon Sep 17 00:00:00 2001 From: kibigo! Date: Fri, 17 Nov 2017 19:11:18 -0800 Subject: Forking glitch theme --- .../glitch/features/compose/components/warning.js | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/javascript/themes/glitch/features/compose/components/warning.js (limited to 'app/javascript/themes/glitch/features/compose/components/warning.js') diff --git a/app/javascript/themes/glitch/features/compose/components/warning.js b/app/javascript/themes/glitch/features/compose/components/warning.js new file mode 100644 index 000000000..82df55a31 --- /dev/null +++ b/app/javascript/themes/glitch/features/compose/components/warning.js @@ -0,0 +1,26 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import Motion from 'themes/glitch/util/optional_motion'; +import spring from 'react-motion/lib/spring'; + +export default class Warning extends React.PureComponent { + + static propTypes = { + message: PropTypes.node.isRequired, + }; + + render () { + const { message } = this.props; + + return ( + + {({ opacity, scaleX, scaleY }) => ( +
+ {message} +
+ )} +
+ ); + } + +} -- cgit