From 5f5409ad4ace69232564779a237811ec0f736674 Mon Sep 17 00:00:00 2001 From: Allison Levine Date: Wed, 27 Oct 2021 12:06:52 -0400 Subject: [PATCH] [not verified] Swap out TS files for JS files --- .../connection-icon/{index.tsx => index.jsx} | 27 ++++++++++++------- .../{index.tsx => index.jsx} | 25 ++++++++--------- 2 files changed, 31 insertions(+), 21 deletions(-) rename projects/plugins/jetpack/extensions/plugins/publicize/components/connection-icon/{index.tsx => index.jsx} (60%) rename projects/plugins/jetpack/extensions/plugins/publicize/components/connection-toggle/{index.tsx => index.jsx} (72%) diff --git a/projects/plugins/jetpack/extensions/plugins/publicize/components/connection-icon/index.tsx b/projects/plugins/jetpack/extensions/plugins/publicize/components/connection-icon/index.jsx similarity index 60% rename from projects/plugins/jetpack/extensions/plugins/publicize/components/connection-icon/index.tsx rename to projects/plugins/jetpack/extensions/plugins/publicize/components/connection-icon/index.jsx index 22d49c6ef2f10..c3c632bdb5ff6 100644 --- a/projects/plugins/jetpack/extensions/plugins/publicize/components/connection-icon/index.tsx +++ b/projects/plugins/jetpack/extensions/plugins/publicize/components/connection-icon/index.jsx @@ -1,3 +1,8 @@ +/** + * External dependencies + */ +import PropTypes from 'prop-types'; + /** * Internal dependencies */ @@ -8,20 +13,17 @@ import { SocialServiceIcon } from '../../../../shared/icons'; */ import './style.scss'; -type ConnectionIconProps = { - id: string; - serviceName: string; - label: string; - profilePicture: string; -}; - -const ConnectionIcon: React.FC< ConnectionIconProps > = props => { +const ConnectionIcon = props => { const { id, serviceName, label, profilePicture } = props; return (