diff options
author | ThibG <thib@sitedethib.com> | 2020-12-15 18:43:54 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2020-12-19 01:02:32 +0100 |
commit | e0a253fb2245e538f1854090eb0b72416a21b5bf (patch) | |
tree | 58d518ee26c6a919e15811d80a2df8e55a621715 /app/javascript/flavours/glitch/features/notifications/components/grant_permission_button.js | |
parent | f9d000ebaec7732d5fcd46aa6685108a2619966b (diff) |
[Glitch] Change notification permission handling
Port 79efcf8aad17b8bc47d98592151fbd24b977cbeb to glitch-soc Co-authored-by: Claire <claire.github-309c@sitedethib.com> Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/notifications/components/grant_permission_button.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/notifications/components/grant_permission_button.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/notifications/components/grant_permission_button.js b/app/javascript/flavours/glitch/features/notifications/components/grant_permission_button.js new file mode 100644 index 000000000..798e4c787 --- /dev/null +++ b/app/javascript/flavours/glitch/features/notifications/components/grant_permission_button.js @@ -0,0 +1,19 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { FormattedMessage } from 'react-intl'; + +export default class GrantPermissionButton extends React.PureComponent { + + static propTypes = { + onClick: PropTypes.func.isRequired, + }; + + render () { + return ( + <button className='text-btn column-header__permission-btn' tabIndex='0' onClick={this.props.onClick}> + <FormattedMessage id='notifications.grant_permission' defaultMessage='Grant permission.' /> + </button> + ); + } + +} |