From 69c933aa31fb1ec917caa9b9c58b7de04c729723 Mon Sep 17 00:00:00 2001 From: Gergely Juhasz Date: Thu, 24 Oct 2024 16:41:14 +0200 Subject: [PATCH] Remove defaulting to Twitter, and add an unlink icon --- client/blocks/post-share/publicize-actions-list.jsx | 7 ++++++- client/state/selectors/utils/index.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/client/blocks/post-share/publicize-actions-list.jsx b/client/blocks/post-share/publicize-actions-list.jsx index 1c917604f7f9cc..21861beb519b27 100644 --- a/client/blocks/post-share/publicize-actions-list.jsx +++ b/client/blocks/post-share/publicize-actions-list.jsx @@ -1,5 +1,6 @@ import { isEnabled } from '@automattic/calypso-config'; import { Dialog, Gridicon } from '@automattic/components'; +import { Icon, linkOff } from '@wordpress/icons'; import { localize } from 'i18n-calypso'; import PropTypes from 'prop-types'; import { PureComponent } from 'react'; @@ -64,7 +65,11 @@ class PublicizeActionsList extends PureComponent {
- + { service ? ( + + ) : ( + + ) } { connectionName }
diff --git a/client/state/selectors/utils/index.js b/client/state/selectors/utils/index.js index 9f32702f4089a6..8471a54ef516c2 100644 --- a/client/state/selectors/utils/index.js +++ b/client/state/selectors/utils/index.js @@ -22,7 +22,7 @@ export function enrichPublicizeActionsWithConnections( state, postShareActions ) connectionName: connection?.external_display, message, result, - service: connection?.service ?? 'twitter', + service: connection?.service, date: share_date, status, url,