diff --git a/src/components/LeftSection/index.jsx b/src/components/LeftSection/index.jsx
index 3f1b26d..81e8323 100644
--- a/src/components/LeftSection/index.jsx
+++ b/src/components/LeftSection/index.jsx
@@ -11,11 +11,12 @@ import classNames from "classnames";
import PhotoIcon from "../../icons/PhotoIcon";
import { useAppDispatch, useAppSelector } from "../../hooks/store";
import { closeDrawer } from "../../reducers/leftSection";
+import SettingsIcon from "../../icons/SettingsIcon";
const LeftSection = (props) => {
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
const leftSectionOpen = useAppSelector((state) => state.leftSection.drawOpen);
- const { isHome, isTrash, isMedia } = useUtils();
+ const { isHome, isTrash, isMedia, isSettings } = useUtils();
const dispatch = useAppDispatch();
const navigate = useNavigate();
const addNewDisabled = useRef(false);
@@ -47,6 +48,11 @@ const LeftSection = (props) => {
navigate("/media");
};
+ const goSettings = () => {
+ dispatch(closeDrawer());
+ navigate("/settings");
+ };
+
const closeDrawerEvent = useCallback(
(e) => {
console.log("close", e?.target.id);
@@ -97,7 +103,7 @@ const LeftSection = (props) => {
Settings
+ +