Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/apps/dashboard/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"axios": "^1.7.2",
"clsx": "^2.1.1",
"dayjs": "^1.11.11",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-number-format": "^5.4.5",
"react-router-dom": "^7.13.0",
"recharts": "^2.13.0-alpha.4",
Expand All @@ -47,8 +47,8 @@
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^10.1.0",
"eslint-import-resolver-typescript": "^4.4.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useState } from 'react';
import { type ReactElement, useEffect, useState } from 'react';

import Stack from '@mui/material/Stack';
import { AxiosError } from 'axios';
Expand Down Expand Up @@ -38,7 +38,7 @@ const renderCurrentResultType = (

const renderType: Record<
keyof AddressDetails,
{ title: string; icon: JSX.Element }
{ title: string; icon: ReactElement }
> = {
operator: {
title: 'Wallet Address',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { FC } from 'react';
import type { FC, ReactElement } from 'react';

import clsx from 'clsx';

const ShadowIcon: FC<{
className?: string;
title?: string;
img: string | JSX.Element;
img: string | ReactElement;
}> = ({ className, title, img }) => {
return (
<div className={clsx('shadow-icon', className)}>
Expand Down
8 changes: 4 additions & 4 deletions packages/apps/faucet/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
"@human-protocol/sdk": "workspace:*",
"@mui/icons-material": "^7.3.8",
"@mui/material": "^5.16.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-loading-skeleton": "^3.3.1",
"react-router-dom": "^7.13.0",
"serve": "^14.2.4",
"viem": "2.x"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^4.3.4",
"dotenv": "^17.2.2",
"eslint": "^10.1.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/apps/fortune/exchange-oracle/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
"@tanstack/react-query-persist-client": "^5.80.7",
"axios": "^1.7.2",
"ethers": "^6.16.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-router-dom": "^7.13.0",
"serve": "^14.2.4",
"viem": "2.x",
"wagmi": "^2.14.6"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.3",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^10.1.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/apps/human-app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"notistack": "^3.0.1",
"prop-types": "^15.8.1",
"query-string": "^9.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-hook-form": "^7.71.1",
"react-i18next": "^15.1.0",
"react-imask": "^7.4.0",
Expand All @@ -66,8 +66,8 @@
"@types/mui-image": "^1.0.5",
"@types/node": "^22.10.5",
"@types/prop-types": "^15",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.3",
"@vercel/style-guide": "^6.0.0",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^10.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ReactNode } from 'react';
import { useLocation, Navigate } from 'react-router-dom';
import { createContext } from 'react';
import { routerPaths } from '@/router/router-paths';
Expand All @@ -11,7 +12,7 @@ export const Web3AuthenticatedUserContext =

export function RequireWeb3Auth({
children,
}: Readonly<{ children: JSX.Element }>) {
}: Readonly<{ children: ReactNode }>) {
const web3Auth = useWeb3Auth();
const location = useLocation();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ReactNode } from 'react';
import { useLocation, Navigate } from 'react-router-dom';
import { createContext } from 'react';
import { useAuth } from '@/modules/auth/hooks/use-auth';
Expand All @@ -9,7 +10,7 @@ import { type UserData } from '../context/auth-context';
export const AuthenticatedUserContext =
createContext<AuthenticatedUserContextType<UserData> | null>(null);

export function RequireAuth({ children }: Readonly<{ children: JSX.Element }>) {
export function RequireAuth({ children }: Readonly<{ children: ReactNode }>) {
const auth = useAuth();
const location = useLocation();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { CustomTextField, CustomTextFieldDark } from './custom-text-field';

export function WalletConnectDone() {
const [isCopied, setIsCopied] = useState(false);
const timeoutRef = useRef<NodeJS.Timeout>();
const timeoutRef = useRef<NodeJS.Timeout | null>(null);
const { isDarkMode } = useColorMode();
const { address } = useWalletConnect();
const {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ReactNode } from 'react';
import { useAuthenticatedUser } from '@/modules/auth/hooks/use-authenticated-user';
import { routerPaths } from '@/router/router-paths';
import { protectedRoutes } from '@/router/routes';
Expand All @@ -8,9 +9,7 @@ const stakeProtectedPaths = protectedRoutes
.map((route) => route.routerProps.path)
.filter((path) => path !== routerPaths.worker.profile);

export function RequireStake({
children,
}: Readonly<{ children: JSX.Element }>) {
export function RequireStake({ children }: Readonly<{ children: ReactNode }>) {
const { user } = useAuthenticatedUser();
const location = useLocation();
const { uiConfig } = useUiConfig();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CssBaseline from '@mui/material/CssBaseline';
import { Stack } from '@mui/material';
import { useNavigate } from 'react-router-dom';
import { t } from 'i18next';
import type { Dispatch, SetStateAction } from 'react';
import type { Dispatch, ReactElement, SetStateAction } from 'react';
import { HumanLogoNavbarIcon } from '@/shared/components/ui/icons';
import { Button } from '@/shared/components/ui/button';
import { useIsMobile } from '@/shared/hooks/use-is-mobile';
Expand All @@ -18,12 +18,12 @@ export interface DrawerItem {
label: string;
link?: string;
href?: string;
icon?: JSX.Element;
icon?: ReactElement;
disabled?: boolean;
onClick?: () => void;
}

export type MenuItem = DrawerItem | JSX.Element;
export type MenuItem = DrawerItem | ReactElement;
interface DrawerNavigationProps {
open: boolean;
setDrawerOpen: Dispatch<SetStateAction<boolean>>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Grid, styled } from '@mui/material';
import type { Dispatch, SetStateAction } from 'react';
import type { Dispatch, ReactElement, SetStateAction } from 'react';
import { useEffect, useRef, useState } from 'react';
import { Outlet } from 'react-router-dom';
import { useIsMobile } from '@/shared/hooks/use-is-mobile';
Expand Down Expand Up @@ -43,11 +43,11 @@ export function ProtectedLayout({
renderDrawer: (
open: boolean,
setDrawerOpen: Dispatch<SetStateAction<boolean>>
) => JSX.Element;
renderHCaptchaStatisticsDrawer?: (isOpen: boolean) => JSX.Element;
) => ReactElement;
renderHCaptchaStatisticsDrawer?: (isOpen: boolean) => ReactElement;
renderGovernanceBanner?: boolean;
}>) {
const layoutElementRef = useRef<HTMLDivElement>();
const layoutElementRef = useRef<HTMLDivElement | null>(null);
const isHCaptchaLabelingPage = useIsHCaptchaLabelingPage();
const isMobile = useIsMobile();
const [drawerOpen, setDrawerOpen] = useState(!isMobile);
Expand Down Expand Up @@ -123,12 +123,7 @@ export function ProtectedLayout({
<Grid item>
<PageHeader {...pageHeaderProps} />
</Grid>
<Grid
component="div"
// @ts-expect-error -- MUI accepts this prop even if it's not typed
ref={layoutElementRef}
sx={{ height: '100%' }}
>
<Grid component="div" ref={layoutElementRef} sx={{ height: '100%' }}>
<Outlet />
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import type { ReactNode } from 'react';

export function MailTo({
children,
mail,
}: {
children?: JSX.Element;
children?: ReactNode;
mail: string;
}) {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ReactNode } from 'react';
import { useLocation, Navigate } from 'react-router-dom';
import { createContext } from 'react';
import { routerPaths } from '@/router/router-paths';
Expand All @@ -10,7 +11,7 @@ export const ConnectedWalletContext =

export function RequireWalletConnect({
children,
}: Readonly<{ children: JSX.Element }>) {
}: Readonly<{ children: ReactNode }>) {
const walletConnect = useWalletConnect();
const location = useLocation();

Expand Down
8 changes: 4 additions & 4 deletions packages/apps/job-launcher/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"file-saver": "^2.0.5",
"formik": "^2.4.2",
"jwt-decode": "^4.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-redux": "^9.1.0",
"react-router-dom": "^7.13.0",
"recharts": "^2.7.2",
Expand Down Expand Up @@ -67,8 +67,8 @@
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/file-saver": "^2.0.7",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.3",
"@types/xml2js": "^0.4.14",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^10.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useLocation, Navigate } from 'react-router-dom';
import { useAppSelector } from '../../state';
import { UserStatus } from '../../state/auth/types';

export function ProtectedRoute({ children }: { children: JSX.Element }) {
export function ProtectedRoute({ children }: { children: React.ReactNode }) {
const { isAuthed, user } = useAppSelector((state) => state.auth);
const location = useLocation();

Expand Down
8 changes: 4 additions & 4 deletions packages/apps/staking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"@tanstack/react-query-persist-client": "^5.80.7",
"axios": "^1.7.2",
"ethers": "^6.16.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-router-dom": "^7.13.0",
"serve": "^14.2.4",
"simplebar-react": "^3.3.2",
Expand All @@ -49,8 +49,8 @@
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.3",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^10.1.0",
Expand Down
Loading
Loading