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
@@ -1,7 +1,7 @@
import React, { useEffect } from 'react';
import { Route, Routes, useLocation } from 'react-router-dom';
import { Helmet } from 'react-helmet-async';
import useAppStore from './useAppStore';
import useGeneralStore from './hooks/stores/useGeneralStore';
import Home from './components/views/Home';
import Board from './components/views/Board';
import Thread from './components/views/Thread';
@@ -56,7 +56,7 @@ export default function App() {
setSelectedStyle,
setShowPostForm,
setShowPostFormLink,
} = useAppStore(state => state);
} = useGeneralStore(state => state);
const location = useLocation();
const isHomeRoute = location.pathname === "/";