Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Markusplay committed Jan 4, 2024
1 parent b4ae21e commit 071251b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ARG NODE_ENV=${NODE_ENV}
RUN if [ $NODE_ENV = "development" ]; then \
cp /app/.env.development /app/.env.production; fi

ENV NODE_ENV="production"
RUN yarn install --prod && yarn build

###################
Expand Down
1 change: 0 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}: {
Expand Down
3 changes: 1 addition & 2 deletions src/components/templates/account-page/AccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ import * as stylesMui from './AccountPage.styles';

const AccountPage = () => {
const { replace } = useRouter();
const query = useSearchParams();
const { isLoggedIn } = useAuthentication();
const [index, setIndex] = useState<AccountPageTab>(AccountPageTab.GENERAL);

useEffect(() => {
if (!isLoggedIn) void replace('/login?~account');
}, [isLoggedIn, replace]);

const handleChange = async (event: SyntheticEvent, value: AccountPageTab) => {
const handleChange = async (_: SyntheticEvent, value: AccountPageTab) => {
setIndex(value);
};

Expand Down

0 comments on commit 071251b

Please sign in to comment.