From 107929dc3f537492ccbc5bb255558a236dd1d0d1 Mon Sep 17 00:00:00 2001 From: zuies Date: Fri, 15 Sep 2023 10:12:47 +0300 Subject: [PATCH] change directory of shared components --- src/components/{twitter => }/shared/TcAlert.spec.tsx | 0 src/components/{twitter => }/shared/TcAlert.tsx | 0 .../shared/TcBox/TcBoxContainer.spec.tsx | 0 .../{twitter => }/shared/TcBox/TcBoxContainer.tsx | 0 .../shared/TcBox/TcBoxContentContainer.spec.tsx | 0 .../shared/TcBox/TcBoxContentContainer.tsx | 0 .../shared/TcBox/TcBoxTitleContainer.spec.tsx | 0 .../shared/TcBox/TcBoxTitleContainer.tsx | 0 src/components/{twitter => }/shared/TcBox/index.ts | 0 .../{twitter => }/shared/TcButton.spec.tsx | 0 src/components/{twitter => }/shared/TcButton.tsx | 0 src/components/{twitter => }/shared/TcCard.spec.tsx | 0 src/components/{twitter => }/shared/TcCard.tsx | 0 .../{twitter => }/shared/TcCheckbox.spec.tsx | 0 src/components/{twitter => }/shared/TcCheckbox.tsx | 0 .../{twitter => }/shared/TcCollapse.spec.tsx | 0 src/components/{twitter => }/shared/TcCollapse.tsx | 0 .../{twitter => }/shared/TcDialog/TcDialog.spec.tsx | 0 .../{twitter => }/shared/TcDialog/TcDialog.tsx | 0 .../{twitter => }/shared/TcDialog/index.ts | 0 .../{twitter => }/shared/TcIconWithTooltip.spec.tsx | 0 .../{twitter => }/shared/TcIconWithTooltip.tsx | 0 src/components/{twitter => }/shared/TcLink.spec.tsx | 0 src/components/{twitter => }/shared/TcLink.tsx | 0 src/components/{twitter => }/shared/TcText.spec.tsx | 0 src/components/{twitter => }/shared/TcText.tsx | 0 .../accountActivity/TcAccountActivityContent.tsx | 6 +++--- .../accountActivity/TcAccountActivityHeader.tsx | 4 ++-- .../audienceResponse/TcAudienceResponseContent.tsx | 6 +++--- .../audienceResponse/TcAudienceResponseHeader.tsx | 2 +- .../TcEngagementAccountContentItems.tsx | 4 ++-- .../TcEngagementAccountsContent.tsx | 2 +- .../TcEngagementAccountsHeader.tsx | 2 +- .../twitter/growth/voteFeature/TcvoteFeature.tsx | 2 +- .../growth/voteFeature/TcvoteFeatureHeader.tsx | 2 +- .../TcvoteFeatureVotes/TcvoteFeatureVotesItems.tsx | 4 ++-- .../TcYourAccountActivityContent.tsx | 6 +++--- .../TcYourAccountActivityHeader.tsx | 2 +- src/layouts/defaultLayout.tsx | 12 ++++++------ src/pages/growth.tsx | 4 ++-- 40 files changed, 29 insertions(+), 29 deletions(-) rename src/components/{twitter => }/shared/TcAlert.spec.tsx (100%) rename src/components/{twitter => }/shared/TcAlert.tsx (100%) rename src/components/{twitter => }/shared/TcBox/TcBoxContainer.spec.tsx (100%) rename src/components/{twitter => }/shared/TcBox/TcBoxContainer.tsx (100%) rename src/components/{twitter => }/shared/TcBox/TcBoxContentContainer.spec.tsx (100%) rename src/components/{twitter => }/shared/TcBox/TcBoxContentContainer.tsx (100%) rename src/components/{twitter => }/shared/TcBox/TcBoxTitleContainer.spec.tsx (100%) rename src/components/{twitter => }/shared/TcBox/TcBoxTitleContainer.tsx (100%) rename src/components/{twitter => }/shared/TcBox/index.ts (100%) rename src/components/{twitter => }/shared/TcButton.spec.tsx (100%) rename src/components/{twitter => }/shared/TcButton.tsx (100%) rename src/components/{twitter => }/shared/TcCard.spec.tsx (100%) rename src/components/{twitter => }/shared/TcCard.tsx (100%) rename src/components/{twitter => }/shared/TcCheckbox.spec.tsx (100%) rename src/components/{twitter => }/shared/TcCheckbox.tsx (100%) rename src/components/{twitter => }/shared/TcCollapse.spec.tsx (100%) rename src/components/{twitter => }/shared/TcCollapse.tsx (100%) rename src/components/{twitter => }/shared/TcDialog/TcDialog.spec.tsx (100%) rename src/components/{twitter => }/shared/TcDialog/TcDialog.tsx (100%) rename src/components/{twitter => }/shared/TcDialog/index.ts (100%) rename src/components/{twitter => }/shared/TcIconWithTooltip.spec.tsx (100%) rename src/components/{twitter => }/shared/TcIconWithTooltip.tsx (100%) rename src/components/{twitter => }/shared/TcLink.spec.tsx (100%) rename src/components/{twitter => }/shared/TcLink.tsx (100%) rename src/components/{twitter => }/shared/TcText.spec.tsx (100%) rename src/components/{twitter => }/shared/TcText.tsx (100%) diff --git a/src/components/twitter/shared/TcAlert.spec.tsx b/src/components/shared/TcAlert.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcAlert.spec.tsx rename to src/components/shared/TcAlert.spec.tsx diff --git a/src/components/twitter/shared/TcAlert.tsx b/src/components/shared/TcAlert.tsx similarity index 100% rename from src/components/twitter/shared/TcAlert.tsx rename to src/components/shared/TcAlert.tsx diff --git a/src/components/twitter/shared/TcBox/TcBoxContainer.spec.tsx b/src/components/shared/TcBox/TcBoxContainer.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcBox/TcBoxContainer.spec.tsx rename to src/components/shared/TcBox/TcBoxContainer.spec.tsx diff --git a/src/components/twitter/shared/TcBox/TcBoxContainer.tsx b/src/components/shared/TcBox/TcBoxContainer.tsx similarity index 100% rename from src/components/twitter/shared/TcBox/TcBoxContainer.tsx rename to src/components/shared/TcBox/TcBoxContainer.tsx diff --git a/src/components/twitter/shared/TcBox/TcBoxContentContainer.spec.tsx b/src/components/shared/TcBox/TcBoxContentContainer.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcBox/TcBoxContentContainer.spec.tsx rename to src/components/shared/TcBox/TcBoxContentContainer.spec.tsx diff --git a/src/components/twitter/shared/TcBox/TcBoxContentContainer.tsx b/src/components/shared/TcBox/TcBoxContentContainer.tsx similarity index 100% rename from src/components/twitter/shared/TcBox/TcBoxContentContainer.tsx rename to src/components/shared/TcBox/TcBoxContentContainer.tsx diff --git a/src/components/twitter/shared/TcBox/TcBoxTitleContainer.spec.tsx b/src/components/shared/TcBox/TcBoxTitleContainer.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcBox/TcBoxTitleContainer.spec.tsx rename to src/components/shared/TcBox/TcBoxTitleContainer.spec.tsx diff --git a/src/components/twitter/shared/TcBox/TcBoxTitleContainer.tsx b/src/components/shared/TcBox/TcBoxTitleContainer.tsx similarity index 100% rename from src/components/twitter/shared/TcBox/TcBoxTitleContainer.tsx rename to src/components/shared/TcBox/TcBoxTitleContainer.tsx diff --git a/src/components/twitter/shared/TcBox/index.ts b/src/components/shared/TcBox/index.ts similarity index 100% rename from src/components/twitter/shared/TcBox/index.ts rename to src/components/shared/TcBox/index.ts diff --git a/src/components/twitter/shared/TcButton.spec.tsx b/src/components/shared/TcButton.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcButton.spec.tsx rename to src/components/shared/TcButton.spec.tsx diff --git a/src/components/twitter/shared/TcButton.tsx b/src/components/shared/TcButton.tsx similarity index 100% rename from src/components/twitter/shared/TcButton.tsx rename to src/components/shared/TcButton.tsx diff --git a/src/components/twitter/shared/TcCard.spec.tsx b/src/components/shared/TcCard.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcCard.spec.tsx rename to src/components/shared/TcCard.spec.tsx diff --git a/src/components/twitter/shared/TcCard.tsx b/src/components/shared/TcCard.tsx similarity index 100% rename from src/components/twitter/shared/TcCard.tsx rename to src/components/shared/TcCard.tsx diff --git a/src/components/twitter/shared/TcCheckbox.spec.tsx b/src/components/shared/TcCheckbox.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcCheckbox.spec.tsx rename to src/components/shared/TcCheckbox.spec.tsx diff --git a/src/components/twitter/shared/TcCheckbox.tsx b/src/components/shared/TcCheckbox.tsx similarity index 100% rename from src/components/twitter/shared/TcCheckbox.tsx rename to src/components/shared/TcCheckbox.tsx diff --git a/src/components/twitter/shared/TcCollapse.spec.tsx b/src/components/shared/TcCollapse.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcCollapse.spec.tsx rename to src/components/shared/TcCollapse.spec.tsx diff --git a/src/components/twitter/shared/TcCollapse.tsx b/src/components/shared/TcCollapse.tsx similarity index 100% rename from src/components/twitter/shared/TcCollapse.tsx rename to src/components/shared/TcCollapse.tsx diff --git a/src/components/twitter/shared/TcDialog/TcDialog.spec.tsx b/src/components/shared/TcDialog/TcDialog.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcDialog/TcDialog.spec.tsx rename to src/components/shared/TcDialog/TcDialog.spec.tsx diff --git a/src/components/twitter/shared/TcDialog/TcDialog.tsx b/src/components/shared/TcDialog/TcDialog.tsx similarity index 100% rename from src/components/twitter/shared/TcDialog/TcDialog.tsx rename to src/components/shared/TcDialog/TcDialog.tsx diff --git a/src/components/twitter/shared/TcDialog/index.ts b/src/components/shared/TcDialog/index.ts similarity index 100% rename from src/components/twitter/shared/TcDialog/index.ts rename to src/components/shared/TcDialog/index.ts diff --git a/src/components/twitter/shared/TcIconWithTooltip.spec.tsx b/src/components/shared/TcIconWithTooltip.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcIconWithTooltip.spec.tsx rename to src/components/shared/TcIconWithTooltip.spec.tsx diff --git a/src/components/twitter/shared/TcIconWithTooltip.tsx b/src/components/shared/TcIconWithTooltip.tsx similarity index 100% rename from src/components/twitter/shared/TcIconWithTooltip.tsx rename to src/components/shared/TcIconWithTooltip.tsx diff --git a/src/components/twitter/shared/TcLink.spec.tsx b/src/components/shared/TcLink.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcLink.spec.tsx rename to src/components/shared/TcLink.spec.tsx diff --git a/src/components/twitter/shared/TcLink.tsx b/src/components/shared/TcLink.tsx similarity index 100% rename from src/components/twitter/shared/TcLink.tsx rename to src/components/shared/TcLink.tsx diff --git a/src/components/twitter/shared/TcText.spec.tsx b/src/components/shared/TcText.spec.tsx similarity index 100% rename from src/components/twitter/shared/TcText.spec.tsx rename to src/components/shared/TcText.spec.tsx diff --git a/src/components/twitter/shared/TcText.tsx b/src/components/shared/TcText.tsx similarity index 100% rename from src/components/twitter/shared/TcText.tsx rename to src/components/shared/TcText.tsx diff --git a/src/components/twitter/growth/accountActivity/TcAccountActivityContent.tsx b/src/components/twitter/growth/accountActivity/TcAccountActivityContent.tsx index adec5513..7f3b043b 100644 --- a/src/components/twitter/growth/accountActivity/TcAccountActivityContent.tsx +++ b/src/components/twitter/growth/accountActivity/TcAccountActivityContent.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import TcCard from '../../shared/TcCard'; -import TcText from '../../shared/TcText'; -import TcIconWithTooltip from '../../shared/TcIconWithTooltip'; +import TcCard from '../../../shared/TcCard'; +import TcText from '../../../shared/TcText'; +import TcIconWithTooltip from '../../../shared/TcIconWithTooltip'; const accountActivityMockList = [ { diff --git a/src/components/twitter/growth/accountActivity/TcAccountActivityHeader.tsx b/src/components/twitter/growth/accountActivity/TcAccountActivityHeader.tsx index 39ee931a..c4f8a827 100644 --- a/src/components/twitter/growth/accountActivity/TcAccountActivityHeader.tsx +++ b/src/components/twitter/growth/accountActivity/TcAccountActivityHeader.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { BiTimeFive } from 'react-icons/bi'; -import TcText from '../../shared/TcText'; -import TcLink from '../../shared/TcLink'; +import TcText from '../../../shared/TcText'; +import TcLink from '../../../shared/TcLink'; export default function TcAccountActivityHeader() { return ( diff --git a/src/components/twitter/growth/audienceResponse/TcAudienceResponseContent.tsx b/src/components/twitter/growth/audienceResponse/TcAudienceResponseContent.tsx index db49baf9..55c39800 100644 --- a/src/components/twitter/growth/audienceResponse/TcAudienceResponseContent.tsx +++ b/src/components/twitter/growth/audienceResponse/TcAudienceResponseContent.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import TcCard from '../../shared/TcCard'; -import TcIconWithTooltip from '../../shared/TcIconWithTooltip'; -import TcText from '../../shared/TcText'; +import TcCard from '../../../shared/TcCard'; +import TcIconWithTooltip from '../../../shared/TcIconWithTooltip'; +import TcText from '../../../shared/TcText'; const yourAccountActivityMockList = [ { description: 'Replies', diff --git a/src/components/twitter/growth/audienceResponse/TcAudienceResponseHeader.tsx b/src/components/twitter/growth/audienceResponse/TcAudienceResponseHeader.tsx index e79658d1..ca777dc4 100644 --- a/src/components/twitter/growth/audienceResponse/TcAudienceResponseHeader.tsx +++ b/src/components/twitter/growth/audienceResponse/TcAudienceResponseHeader.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import TcText from '../../shared/TcText'; +import TcText from '../../../shared/TcText'; function TcAudienceResponseHeader() { return ( diff --git a/src/components/twitter/growth/engagementAccounts/TcEngagementAccountContentItems.tsx b/src/components/twitter/growth/engagementAccounts/TcEngagementAccountContentItems.tsx index 9f33fba5..12de32e6 100644 --- a/src/components/twitter/growth/engagementAccounts/TcEngagementAccountContentItems.tsx +++ b/src/components/twitter/growth/engagementAccounts/TcEngagementAccountContentItems.tsx @@ -1,7 +1,7 @@ import clsx from 'clsx'; import React from 'react'; -import TcText from '../../shared/TcText'; -import TcIconWithTooltip from '../../shared/TcIconWithTooltip'; +import TcText from '../../../shared/TcText'; +import TcIconWithTooltip from '../../../shared/TcIconWithTooltip'; import { MdOutlineInfo } from 'react-icons/md'; interface ITcEngagementAccountContentItemsProps { diff --git a/src/components/twitter/growth/engagementAccounts/TcEngagementAccountsContent.tsx b/src/components/twitter/growth/engagementAccounts/TcEngagementAccountsContent.tsx index e56c6d10..b4421515 100644 --- a/src/components/twitter/growth/engagementAccounts/TcEngagementAccountsContent.tsx +++ b/src/components/twitter/growth/engagementAccounts/TcEngagementAccountsContent.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import TcText from '../../shared/TcText'; +import TcText from '../../../shared/TcText'; import TcEngagementAccountContentItems from './TcEngagementAccountContentItems'; interface IContentItem { diff --git a/src/components/twitter/growth/engagementAccounts/TcEngagementAccountsHeader.tsx b/src/components/twitter/growth/engagementAccounts/TcEngagementAccountsHeader.tsx index 72a54905..db6f4477 100644 --- a/src/components/twitter/growth/engagementAccounts/TcEngagementAccountsHeader.tsx +++ b/src/components/twitter/growth/engagementAccounts/TcEngagementAccountsHeader.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import TcText from '../../shared/TcText'; +import TcText from '../../../shared/TcText'; function TcEngagementAccountsHeader() { return ( diff --git a/src/components/twitter/growth/voteFeature/TcvoteFeature.tsx b/src/components/twitter/growth/voteFeature/TcvoteFeature.tsx index 8b756060..2187feae 100644 --- a/src/components/twitter/growth/voteFeature/TcvoteFeature.tsx +++ b/src/components/twitter/growth/voteFeature/TcvoteFeature.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import TcvoteFeatureHeader from './TcvoteFeatureHeader'; import TcvoteFeatureVotes from './TcvoteFeatureVotes/TcvoteFeatureVotes'; -import TcButton from '../../shared/TcButton'; +import TcButton from '../../../shared/TcButton'; function TcvoteFeature() { const [nextFeature, setNextFeature] = useState>([ diff --git a/src/components/twitter/growth/voteFeature/TcvoteFeatureHeader.tsx b/src/components/twitter/growth/voteFeature/TcvoteFeatureHeader.tsx index bcbfd6e0..7709dbfe 100644 --- a/src/components/twitter/growth/voteFeature/TcvoteFeatureHeader.tsx +++ b/src/components/twitter/growth/voteFeature/TcvoteFeatureHeader.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import TcText from '../../shared/TcText'; +import TcText from '../../../shared/TcText'; function TcAudienceResponseHeader() { return ( diff --git a/src/components/twitter/growth/voteFeature/TcvoteFeatureVotes/TcvoteFeatureVotesItems.tsx b/src/components/twitter/growth/voteFeature/TcvoteFeatureVotes/TcvoteFeatureVotesItems.tsx index 0cb4643e..c9df0f59 100644 --- a/src/components/twitter/growth/voteFeature/TcvoteFeatureVotes/TcvoteFeatureVotesItems.tsx +++ b/src/components/twitter/growth/voteFeature/TcvoteFeatureVotes/TcvoteFeatureVotesItems.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import TcCheckbox from '../../../shared/TcCheckbox'; +import TcCheckbox from '../../../../shared/TcCheckbox'; import { FormControlLabel } from '@mui/material'; -import TcText from '../../../shared/TcText'; +import TcText from '../../../../shared/TcText'; interface ITcvoteFeatureVotesItemsProps { label: string; diff --git a/src/components/twitter/growth/yourAccountActivity/TcYourAccountActivityContent.tsx b/src/components/twitter/growth/yourAccountActivity/TcYourAccountActivityContent.tsx index 742a8c12..39e2f785 100644 --- a/src/components/twitter/growth/yourAccountActivity/TcYourAccountActivityContent.tsx +++ b/src/components/twitter/growth/yourAccountActivity/TcYourAccountActivityContent.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import TcCard from '../../shared/TcCard'; -import TcIconWithTooltip from '../../shared/TcIconWithTooltip'; -import TcText from '../../shared/TcText'; +import TcCard from '../../../shared/TcCard'; +import TcIconWithTooltip from '../../../shared/TcIconWithTooltip'; +import TcText from '../../../shared/TcText'; const yourAccountActivityMockList = [ { description: 'Number of posts', diff --git a/src/components/twitter/growth/yourAccountActivity/TcYourAccountActivityHeader.tsx b/src/components/twitter/growth/yourAccountActivity/TcYourAccountActivityHeader.tsx index 81e143f8..b77077e3 100644 --- a/src/components/twitter/growth/yourAccountActivity/TcYourAccountActivityHeader.tsx +++ b/src/components/twitter/growth/yourAccountActivity/TcYourAccountActivityHeader.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import TcText from '../../shared/TcText'; +import TcText from '../../../shared/TcText'; function TcYourAccountActivityHeader() { return ( diff --git a/src/layouts/defaultLayout.tsx b/src/layouts/defaultLayout.tsx index 250d5a71..bf118070 100644 --- a/src/layouts/defaultLayout.tsx +++ b/src/layouts/defaultLayout.tsx @@ -4,13 +4,13 @@ import SidebarXs from '../components/layouts/xs/SidebarXs'; import useAppStore from '../store/useStore'; import { StorageService } from '../services/StorageService'; import { IUser } from '../utils/types'; -import TcAlert from '../components/twitter/shared/TcAlert'; -import TcButton from '../components/twitter/shared/TcButton'; -import TcCollapse from '../components/twitter/shared/TcCollapse'; -import TcText from '../components/twitter/shared/TcText'; -import TcDialog from '../components/twitter/shared/TcDialog'; +import TcAlert from '../components/shared/TcAlert'; +import TcButton from '../components/shared/TcButton'; +import TcCollapse from '../components/shared/TcCollapse'; +import TcText from '../components/shared/TcText'; +import TcDialog from '../components/shared/TcDialog'; import { IoCloseSharp } from 'react-icons/io5'; -import TcLink from '../components/twitter/shared/TcLink'; +import TcLink from '../components/shared/TcLink'; import { useRouter } from 'next/router'; type IDefaultLayoutProps = { diff --git a/src/pages/growth.tsx b/src/pages/growth.tsx index 97bd9e7b..e77018d7 100644 --- a/src/pages/growth.tsx +++ b/src/pages/growth.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { defaultLayout } from '../layouts/defaultLayout'; import SEO from '../components/global/SEO'; -import TcText from '../components/twitter/shared/TcText'; -import TcBoxContainer from '../components/twitter/shared/TcBox/TcBoxContainer'; +import TcText from '../components/shared/TcText'; +import TcBoxContainer from '../components/shared/TcBox/TcBoxContainer'; import TcAccountActivity from '../components/twitter/growth/accountActivity/TcAccountActivity'; import TcYourAccountActivity from '../components/twitter/growth/yourAccountActivity/TcYourAccountActivity'; import TcAudienceResponse from '../components/twitter/growth/audienceResponse/TcAudienceResponse';