Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sscoderati committed Jan 27, 2024
2 parents 3216ead + c9ee91d commit 53e0158
Show file tree
Hide file tree
Showing 16 changed files with 129 additions and 120 deletions.
157 changes: 88 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"react-icons": "^4.11.0",
"react-router-dom": "^6.16.0",
"react-spinners": "^0.13.8",
"react-toastify": "^9.1.3",
"sonner": "^1.3.1",
"zod": "^3.22.4",
"zustand": "^4.4.4",
"zustand-persist": "^0.4.0"
Expand Down
1 change: 0 additions & 1 deletion src/components/common/AppHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ const AppHeader = ({ isAuth, isDarkMode, height, toggleDarkMode }: AppHeaderProp
showToast({
message: "프로필 정보를 불러오는데 실패했습니다.",
type: "error",
isDarkMode,
});
useAuthStore.persist.clearStorage();
navigate("/login");
Expand Down
13 changes: 10 additions & 3 deletions src/components/layouts/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
import { Outlet } from "react-router-dom";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import styled from "@emotion/styled";
import { Toaster } from "sonner";
import Modal from "@/components/common/Modal";
import { theme } from "@/styles/theme";
import useThemeStore from "@/store/ThemeStore.tsx";

const Layout = () => {
const isDarkMode = useThemeStore((state) => state.isDarkMode);

return (
<MainContainer>
<Toaster
duration={2000}
position={"top-center"}
theme={isDarkMode ? "dark" : "light"}
richColors
/>
<Modal />
<Outlet />
<ToastContainer />
</MainContainer>
);
};
Expand Down
Loading

0 comments on commit 53e0158

Please sign in to comment.