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/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index c190ad1ca..463fc6600 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -25,5 +25,5 @@ jobs: context: . push: true build-args: - NODE_ENV=${{ github.ref_name == 'master' && 'production' || 'development' }} + NODE_ENV=production tags: fictadvisor/fictadvisor-web:${{ github.ref_name }} 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); };