Skip to content

Commit

Permalink
chore: move operator profile components to one module
Browse files Browse the repository at this point in the history
  • Loading branch information
mpblocky committed Feb 27, 2025
1 parent 3501c19 commit 78fea81
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './profile-disable-button';
export * from './profile-enable-button';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './use-get-stats';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './profile.page';
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/human-app/frontend/src/router/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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[] = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './profile-list-item';
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function ProfileListItem({
header,
paragraph,
isStatusListItem,
}: ProfileListItemProps) {
}: Readonly<ProfileListItemProps>) {
const { colorPalette } = useColorMode();
const { t } = useTranslation();

Expand Down

0 comments on commit 78fea81

Please sign in to comment.