diff --git a/packages/apps/human-app/frontend/src/modules/operator/profile/components/index.ts b/packages/apps/human-app/frontend/src/modules/operator/profile/components/index.ts new file mode 100644 index 0000000000..dbcc41c656 --- /dev/null +++ b/packages/apps/human-app/frontend/src/modules/operator/profile/components/index.ts @@ -0,0 +1,2 @@ +export * from './profile-disable-button'; +export * from './profile-enable-button'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/components/profile/profile-disable-button.tsx b/packages/apps/human-app/frontend/src/modules/operator/profile/components/profile-disable-button.tsx similarity index 100% rename from packages/apps/human-app/frontend/src/modules/operator/components/profile/profile-disable-button.tsx rename to packages/apps/human-app/frontend/src/modules/operator/profile/components/profile-disable-button.tsx diff --git a/packages/apps/human-app/frontend/src/modules/operator/components/profile/profile-enable-button.tsx b/packages/apps/human-app/frontend/src/modules/operator/profile/components/profile-enable-button.tsx similarity index 100% rename from packages/apps/human-app/frontend/src/modules/operator/components/profile/profile-enable-button.tsx rename to packages/apps/human-app/frontend/src/modules/operator/profile/components/profile-enable-button.tsx diff --git a/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/index.ts b/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/index.ts new file mode 100644 index 0000000000..d67ff6f5e3 --- /dev/null +++ b/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/index.ts @@ -0,0 +1 @@ +export * from './use-get-stats'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-stats.ts b/packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-get-stats.ts similarity index 100% rename from packages/apps/human-app/frontend/src/modules/operator/hooks/use-get-stats.ts rename to packages/apps/human-app/frontend/src/modules/operator/profile/hooks/use-get-stats.ts diff --git a/packages/apps/human-app/frontend/src/modules/operator/profile/index.ts b/packages/apps/human-app/frontend/src/modules/operator/profile/index.ts new file mode 100644 index 0000000000..30c1db5b64 --- /dev/null +++ b/packages/apps/human-app/frontend/src/modules/operator/profile/index.ts @@ -0,0 +1 @@ +export * from './profile.page'; diff --git a/packages/apps/human-app/frontend/src/modules/operator/views/profile/profile.page.tsx b/packages/apps/human-app/frontend/src/modules/operator/profile/profile.page.tsx similarity index 95% rename from packages/apps/human-app/frontend/src/modules/operator/views/profile/profile.page.tsx rename to packages/apps/human-app/frontend/src/modules/operator/profile/profile.page.tsx index c128bd16dc..a65e3d487b 100644 --- a/packages/apps/human-app/frontend/src/modules/operator/views/profile/profile.page.tsx +++ b/packages/apps/human-app/frontend/src/modules/operator/profile/profile.page.tsx @@ -9,12 +9,11 @@ import { PageCardLoader, } from '@/shared/components/ui/page-card'; import { getErrorMessageForError } from '@/shared/errors'; -import { ProfileDisableButton } from '@/modules/operator/components/profile/profile-disable-button'; -import { ProfileListItem } from '@/shared/components/ui/profile-list-item'; -import { useGetOperatorStats } from '@/modules/operator/hooks/use-get-stats'; -import { ProfileEnableButton } from '@/modules/operator/components/profile/profile-enable-button'; import { CheckmarkIcon, LockerIcon } from '@/shared/components/ui/icons'; import { useColorMode } from '@/shared/contexts/color-mode'; +import { ProfileListItem } from '@/shared/components/ui/profile'; +import { useGetOperatorStats } from './hooks'; +import { ProfileDisableButton, ProfileEnableButton } from './components'; export function OperatorProfilePage() { const { colorPalette } = useColorMode(); diff --git a/packages/apps/human-app/frontend/src/router/routes.tsx b/packages/apps/human-app/frontend/src/router/routes.tsx index 7f0a411843..a053a65705 100644 --- a/packages/apps/human-app/frontend/src/router/routes.tsx +++ b/packages/apps/human-app/frontend/src/router/routes.tsx @@ -21,7 +21,6 @@ import { VerifyEmailWorkerPage } from '@/modules/worker/views/email-verification import { EmailVerificationWorkerPage } from '@/modules/worker/views/email-verification/email-verification.page'; import { AddStakeOperatorPage } from '@/modules/operator/views/sign-up/add-stake.page'; import { ConnectWalletOperatorPage } from '@/modules/operator/views/sign-up/connect-wallet.page'; -import { OperatorProfilePage } from '@/modules/operator/views/profile/profile.page'; import { Playground } from '@/modules/playground/views/playground.page'; import { HomePage } from '@/modules/homepage/views/home.page'; import { @@ -33,6 +32,7 @@ import { SignUpWorkerPage } from '@/modules/signup/worker'; import { SignInWorkerPage } from '@/modules/signin/worker'; import { JobsDiscoveryPage } from '@/modules/worker/jobs-discovery'; import { WorkerProfilePage } from '@/modules/worker/profile'; +import { OperatorProfilePage } from '@/modules/operator/profile'; export const unprotectedRoutes: RouteProps[] = [ { diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/profile/index.ts b/packages/apps/human-app/frontend/src/shared/components/ui/profile/index.ts new file mode 100644 index 0000000000..232a412eb0 --- /dev/null +++ b/packages/apps/human-app/frontend/src/shared/components/ui/profile/index.ts @@ -0,0 +1 @@ +export * from './profile-list-item'; diff --git a/packages/apps/human-app/frontend/src/shared/components/ui/profile-list-item.tsx b/packages/apps/human-app/frontend/src/shared/components/ui/profile/profile-list-item.tsx similarity index 98% rename from packages/apps/human-app/frontend/src/shared/components/ui/profile-list-item.tsx rename to packages/apps/human-app/frontend/src/shared/components/ui/profile/profile-list-item.tsx index 645c02e693..759c6fb8cd 100644 --- a/packages/apps/human-app/frontend/src/shared/components/ui/profile-list-item.tsx +++ b/packages/apps/human-app/frontend/src/shared/components/ui/profile/profile-list-item.tsx @@ -15,7 +15,7 @@ export function ProfileListItem({ header, paragraph, isStatusListItem, -}: ProfileListItemProps) { +}: Readonly) { const { colorPalette } = useColorMode(); const { t } = useTranslation();