Skip to content

Commit

Permalink
feat(version): release 0.32.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Jan 17, 2024
1 parent a1d2337 commit ab9a218
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG REACT_APP_CREATABLE_REGION
ARG REACT_APP_CREATABLE_INSTANCE
COPY . /app
WORKDIR /app
RUN npm install
RUN npm install -s
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build
RUN rm -rf /app/build/static/js/*.map
FROM nginx:alpine as production-stage
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "ui",
"version": "0.32.0",
"version": "0.32.1",
"private": true,
"scripts": {
"dev": "react-scripts start",
"dev": "GENERATE_SOURCEMAP=false react-scripts start",
"watch": "npx tailwindcss -i ./tailwind.css -o ./public/css/style.css --watch",
"build": "react-scripts --max_old_space_size=4096 build",
"build": "GENERATE_SOURCEMAP=false react-scripts --max_old_space_size=4096 build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand Down
11 changes: 8 additions & 3 deletions src/components/ModeSwitcher/ModeSwitcher.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ReactElement } from "react";
import Toggle from "react-toggle";
import { useAppDispatch, useAppSelector } from "../../hooks/redux";
import { setApplicationMode } from "../../toolkit/UserSlice";
import { envSwitchableMode } from "../../helpers/envProvider";
import { setApplicationMode } from "../../toolkit/UserSlice";
import { ReactElement } from "react";
import Toggle from "react-toggle";

export default function ModeSwitcher(): ReactElement {
const { applicationMode } = useAppSelector((state) => state.user);
Expand All @@ -18,6 +18,11 @@ export default function ModeSwitcher(): ReactElement {
onChange={(e) => {
setTimeout(() => {
dispatch(setApplicationMode(e.target.checked));
document.body.classList.add(
"animate__animated",
"animate__fadeOut",
"animate__faster",
);
window.location.reload();
}, 1000);
}}
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import "@fontsource/inter/700.css";
import "@fontsource/inter/800.css";
import "@fontsource/inter/900.css";
import App from "./App";
// import "animate.css";
import "animate.css";
import "react-loading-skeleton/dist/skeleton.css";

const root = ReactDOM.createRoot(
Expand Down
18 changes: 0 additions & 18 deletions webpack.config.js

This file was deleted.

0 comments on commit ab9a218

Please sign in to comment.