From b00ec4987177bbc6703afe6a8b02839bddfcf7b2 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Tue, 3 Sep 2024 16:27:41 +0800 Subject: [PATCH] refactor: flatten `UserSettings` component file structure (#6539) --- .../PersonalAccessTokens/CreateTokenModal.tsx | 0 .../PersonalAccessTokens/EditTokenModal.tsx | 0 .../{components => }/PersonalAccessTokens/index.module.scss | 0 .../{components => }/PersonalAccessTokens/index.tsx | 0 .../{components => }/UserSocialIdentities/index.module.scss | 0 .../{components => }/UserSocialIdentities/index.tsx | 0 .../{components => }/UserSsoIdentities/index.tsx | 0 .../console/src/pages/UserDetails/UserSettings/index.tsx | 6 +++--- 8 files changed, 3 insertions(+), 3 deletions(-) rename packages/console/src/pages/UserDetails/UserSettings/{components => }/PersonalAccessTokens/CreateTokenModal.tsx (100%) rename packages/console/src/pages/UserDetails/UserSettings/{components => }/PersonalAccessTokens/EditTokenModal.tsx (100%) rename packages/console/src/pages/UserDetails/UserSettings/{components => }/PersonalAccessTokens/index.module.scss (100%) rename packages/console/src/pages/UserDetails/UserSettings/{components => }/PersonalAccessTokens/index.tsx (100%) rename packages/console/src/pages/UserDetails/UserSettings/{components => }/UserSocialIdentities/index.module.scss (100%) rename packages/console/src/pages/UserDetails/UserSettings/{components => }/UserSocialIdentities/index.tsx (100%) rename packages/console/src/pages/UserDetails/UserSettings/{components => }/UserSsoIdentities/index.tsx (100%) diff --git a/packages/console/src/pages/UserDetails/UserSettings/components/PersonalAccessTokens/CreateTokenModal.tsx b/packages/console/src/pages/UserDetails/UserSettings/PersonalAccessTokens/CreateTokenModal.tsx similarity index 100% rename from packages/console/src/pages/UserDetails/UserSettings/components/PersonalAccessTokens/CreateTokenModal.tsx rename to packages/console/src/pages/UserDetails/UserSettings/PersonalAccessTokens/CreateTokenModal.tsx diff --git a/packages/console/src/pages/UserDetails/UserSettings/components/PersonalAccessTokens/EditTokenModal.tsx b/packages/console/src/pages/UserDetails/UserSettings/PersonalAccessTokens/EditTokenModal.tsx similarity index 100% rename from packages/console/src/pages/UserDetails/UserSettings/components/PersonalAccessTokens/EditTokenModal.tsx rename to packages/console/src/pages/UserDetails/UserSettings/PersonalAccessTokens/EditTokenModal.tsx diff --git a/packages/console/src/pages/UserDetails/UserSettings/components/PersonalAccessTokens/index.module.scss b/packages/console/src/pages/UserDetails/UserSettings/PersonalAccessTokens/index.module.scss similarity index 100% rename from packages/console/src/pages/UserDetails/UserSettings/components/PersonalAccessTokens/index.module.scss rename to packages/console/src/pages/UserDetails/UserSettings/PersonalAccessTokens/index.module.scss diff --git a/packages/console/src/pages/UserDetails/UserSettings/components/PersonalAccessTokens/index.tsx b/packages/console/src/pages/UserDetails/UserSettings/PersonalAccessTokens/index.tsx similarity index 100% rename from packages/console/src/pages/UserDetails/UserSettings/components/PersonalAccessTokens/index.tsx rename to packages/console/src/pages/UserDetails/UserSettings/PersonalAccessTokens/index.tsx diff --git a/packages/console/src/pages/UserDetails/UserSettings/components/UserSocialIdentities/index.module.scss b/packages/console/src/pages/UserDetails/UserSettings/UserSocialIdentities/index.module.scss similarity index 100% rename from packages/console/src/pages/UserDetails/UserSettings/components/UserSocialIdentities/index.module.scss rename to packages/console/src/pages/UserDetails/UserSettings/UserSocialIdentities/index.module.scss diff --git a/packages/console/src/pages/UserDetails/UserSettings/components/UserSocialIdentities/index.tsx b/packages/console/src/pages/UserDetails/UserSettings/UserSocialIdentities/index.tsx similarity index 100% rename from packages/console/src/pages/UserDetails/UserSettings/components/UserSocialIdentities/index.tsx rename to packages/console/src/pages/UserDetails/UserSettings/UserSocialIdentities/index.tsx diff --git a/packages/console/src/pages/UserDetails/UserSettings/components/UserSsoIdentities/index.tsx b/packages/console/src/pages/UserDetails/UserSettings/UserSsoIdentities/index.tsx similarity index 100% rename from packages/console/src/pages/UserDetails/UserSettings/components/UserSsoIdentities/index.tsx rename to packages/console/src/pages/UserDetails/UserSettings/UserSsoIdentities/index.tsx diff --git a/packages/console/src/pages/UserDetails/UserSettings/index.tsx b/packages/console/src/pages/UserDetails/UserSettings/index.tsx index 6bbd97e1d..d80e7a362 100644 --- a/packages/console/src/pages/UserDetails/UserSettings/index.tsx +++ b/packages/console/src/pages/UserDetails/UserSettings/index.tsx @@ -26,10 +26,10 @@ import { uriValidator } from '@/utils/validator'; import { type UserDetailsForm, type UserDetailsOutletContext } from '../types'; import { userDetailsParser } from '../utils'; +import PersonalAccessTokens from './PersonalAccessTokens'; import UserMfaVerifications from './UserMfaVerifications'; -import PersonalAccessTokens from './components/PersonalAccessTokens'; -import UserSocialIdentities from './components/UserSocialIdentities'; -import UserSsoIdentities from './components/UserSsoIdentities'; +import UserSocialIdentities from './UserSocialIdentities'; +import UserSsoIdentities from './UserSsoIdentities'; function UserSettings() { const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });