Skip to content

Commit

Permalink
chore: code maintenance [bot]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 11, 2024
1 parent 27452f9 commit bfffdf2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/LinguiClientProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import type { I18n } from '@lingui/core';
import { I18nProvider } from '@lingui/react';
import { useMemo, type PropsWithChildren } from 'react';
import { type PropsWithChildren,useMemo } from 'react';

import { getI18n } from '@/i18n/index.js';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Login/LoginLens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Switch } from '@headlessui/react';
import { t, Trans } from '@lingui/macro';
import { delay } from '@masknet/kit';
import { first } from 'lodash-es';
import React, { useEffect, useState, memo, useCallback } from 'react';
import React, { memo, useCallback,useEffect, useState } from 'react';
import { useAsyncFn } from 'react-use';
import { useAccount } from 'wagmi';

Expand Down
11 changes: 4 additions & 7 deletions src/components/ParticleProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@ export function ParticleProvider({ children }: ParticleProviderProps) {
} satisfies AuthCoreContextProviderOptions;
}, [isDark, locale]);

return useMemo(
() => {
if (!options) return children;
return <AuthCoreContextProvider options={options}>{children}</AuthCoreContextProvider>
},
[options, children],
);
return useMemo(() => {
if (!options) return children;
return <AuthCoreContextProvider options={options}>{children}</AuthCoreContextProvider>;
}, [options, children]);
}
2 changes: 1 addition & 1 deletion src/components/Posts/PostBodyContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Select, t, Trans } from '@lingui/macro';
import { useForkRef } from '@mui/material';
import { compact } from 'lodash-es';
import { usePathname, useRouter } from 'next/navigation.js';
import { forwardRef, memo, type HTMLProps, useMemo, useState } from 'react';
import { forwardRef, type HTMLProps, memo, useMemo, useState } from 'react';
import { useAsync } from 'react-use';

import { TwitterArticleBody } from '@/components/Article/TwitterArticleBody.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/QueryClientProviders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import { QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryStreamedHydration } from '@tanstack/react-query-next-experimental';
import type React from 'react';
import { useMemo } from 'react';

import { queryClient } from '@/configs/queryClient.js';
import { useMemo } from 'react';

export function QueryClientProviders({ children }: { children: React.ReactNode }) {
const memoizedHydration = useMemo(
Expand Down

0 comments on commit bfffdf2

Please sign in to comment.