From 760f95db2466ca7c4cbe71efea8b493acdec306c Mon Sep 17 00:00:00 2001 From: Markusplay Date: Thu, 4 Jan 2024 01:39:14 +0200 Subject: [PATCH] test build --- .github/workflows/build.yml | 2 +- src/app/layout.tsx | 1 - src/components/templates/account-page/AccountPage.tsx | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e42d695f8..b25f591cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,5 +24,5 @@ jobs: with: context: . build-args: - NODE_ENV=${{ github.ref_name == 'master' && 'production' || 'development' }} + NODE_ENV=production tags: fictadvisor/fictadvisor-web diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 6e3b778c6..f9dc70986 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -26,7 +26,6 @@ dayjs.tz.setDefault('Europe/Kiev'); dayjs.locale({ ...uk, weekStart: 1 }); const queryClient = new QueryClient(); -if (!process.browser) React.useLayoutEffect = React.useEffect; export default function RootLayout({ children, }: { diff --git a/src/components/templates/account-page/AccountPage.tsx b/src/components/templates/account-page/AccountPage.tsx index c3e272021..cd8ee0adf 100644 --- a/src/components/templates/account-page/AccountPage.tsx +++ b/src/components/templates/account-page/AccountPage.tsx @@ -31,7 +31,6 @@ import * as stylesMui from './AccountPage.styles'; const AccountPage = () => { const { replace } = useRouter(); - const query = useSearchParams(); const { isLoggedIn } = useAuthentication(); const [index, setIndex] = useState(AccountPageTab.GENERAL); @@ -39,7 +38,7 @@ const AccountPage = () => { if (!isLoggedIn) void replace('/login?~account'); }, [isLoggedIn, replace]); - const handleChange = async (event: SyntheticEvent, value: AccountPageTab) => { + const handleChange = async (_: SyntheticEvent, value: AccountPageTab) => { setIndex(value); };