From 278e1cec1dec481dfc64cd6b588d542280c24c4a Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 18 Dec 2017 13:42:59 -0300 Subject: [PATCH] done --- .../client/components/FeaturedDialog.js | 66 +++++++++++-------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/plugins/talk-plugin-featured-comments/client/components/FeaturedDialog.js b/plugins/talk-plugin-featured-comments/client/components/FeaturedDialog.js index f49148f24..81c054ae8 100644 --- a/plugins/talk-plugin-featured-comments/client/components/FeaturedDialog.js +++ b/plugins/talk-plugin-featured-comments/client/components/FeaturedDialog.js @@ -6,35 +6,43 @@ import styles from './FeaturedDialog.css'; import {t} from 'plugin-api/beta/client/services'; import Button from 'coral-ui/components/Button'; -const FeaturedDialog = ({showFeaturedDialog, closeFeaturedDialog, postTag}) => ( - - × -

{t('talk-plugin-featured-comments.feature_comment')}

-
- {t('talk-plugin-featured-comments.are_you_sure')} -
-
- - -
-
-); +const FeaturedDialog = ({showFeaturedDialog, closeFeaturedDialog, postTag}) => { + + const onPerform = async () => { + await postTag(); + await closeFeaturedDialog(); + }; + + return ( + + × +

{t('talk-plugin-featured-comments.feature_comment')}

+
+ {t('talk-plugin-featured-comments.are_you_sure')} +
+
+ + +
+
+ ); +}; FeaturedDialog.propTypes = { showFeaturedDialog: PropTypes.bool.isRequired,