add stores directory and naming

This commit is contained in:
plebbitor
2023-04-08 13:27:17 +02:00
parent 2a0d590713
commit 603c1084a9
15 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import React from "react";
import { Link, useLocation, useNavigate } from "react-router-dom";
import Modal from "react-modal";
import styled from "styled-components";
import useAppStore from "../useAppStore";
import useGeneralStore from "../hooks/stores/useGeneralStore";
const StyledModal = styled(Modal)`
.panel {
@@ -140,7 +140,7 @@ const customOverlayStyles = {
};
const SettingsModal = ({ isOpen, closeModal }) => {
const selectedStyle = useAppStore(state => state.selectedStyle);
const selectedStyle = useGeneralStore(state => state.selectedStyle);
const navigate = useNavigate();
const location = useLocation();