mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add stores directory and naming
This commit is contained in:
@@ -4,7 +4,7 @@ import InfiniteScroll from 'react-infinite-scroller';
|
||||
import { Tooltip } from 'react-tooltip';
|
||||
import { useFeed, usePublishComment } from '@plebbit/plebbit-react-hooks';
|
||||
import { debounce } from 'lodash';
|
||||
import useAppStore from '../../useAppStore';
|
||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||
import { Container, NavBar, Header, Break, PostFormLink, PostFormTable, PostForm, TopBar, BoardForm } from './styles/Board.styled';
|
||||
import CaptchaModal from '../CaptchaModal';
|
||||
import ImageBanner from '../ImageBanner';
|
||||
@@ -34,7 +34,7 @@ const Board = () => {
|
||||
selectedTitle, setSelectedTitle,
|
||||
showPostForm,
|
||||
showPostFormLink
|
||||
} = useAppStore(state => state);
|
||||
} = useGeneralStore(state => state);
|
||||
|
||||
const nameRef = useRef();
|
||||
const subjectRef = useRef();
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Link, useNavigate, useParams } from 'react-router-dom';
|
||||
import InfiniteScroll from 'react-infinite-scroller';
|
||||
import { useFeed, usePublishComment } from '@plebbit/plebbit-react-hooks';
|
||||
import { debounce } from 'lodash';
|
||||
import useAppStore from '../../useAppStore';
|
||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||
import { Container, NavBar, Header, Break, PostForm, PostFormLink, PostFormTable } from './styles/Board.styled';
|
||||
import { Threads } from './styles/Catalog.styled';
|
||||
import { TopBar } from './styles/Thread.styled';
|
||||
@@ -30,7 +30,7 @@ const Catalog = () => {
|
||||
selectedTitle, setSelectedTitle,
|
||||
showPostForm,
|
||||
showPostFormLink
|
||||
} = useAppStore(state => state);
|
||||
} = useGeneralStore(state => state);
|
||||
|
||||
const nameRef = useRef();
|
||||
const subjectRef = useRef();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import useAppStore from '../../useAppStore';
|
||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||
import { Link, useNavigate } from 'react-router-dom';
|
||||
import { Container, Header, Logo, Page, Search, About, AboutTitle, AboutContent, Boards, BoardsTitle, BoardsContent, Footer } from './styles/Home.styled';
|
||||
|
||||
@@ -11,7 +11,7 @@ const Home = () => {
|
||||
setSelectedAddress,
|
||||
setSelectedStyle,
|
||||
setSelectedTitle
|
||||
} = useAppStore(state => state);
|
||||
} = useGeneralStore(state => state);
|
||||
|
||||
const inputRef = useRef(null);
|
||||
const navigate = useNavigate();
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import useAppStore from '../../useAppStore';
|
||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||
import { Link } from "react-router-dom";
|
||||
import { Container, Header, Logo, Page, Boards, BoardsTitle } from './styles/Home.styled';
|
||||
|
||||
|
||||
const NotFound = ({ setBodyStyle }) => {
|
||||
|
||||
const { setSelectedStyle } = useAppStore(state => state);
|
||||
const { setSelectedStyle } = useGeneralStore(state => state);
|
||||
|
||||
useEffect(() => {
|
||||
setBodyStyle({
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Link, useNavigate, useParams } from 'react-router-dom';
|
||||
import { Tooltip } from 'react-tooltip';
|
||||
import { useComment, usePublishComment } from '@plebbit/plebbit-react-hooks';
|
||||
import { debounce } from 'lodash';
|
||||
import useAppStore from '../../useAppStore';
|
||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||
import { Container, NavBar, Header, Break, PostForm, PostFormTable, BoardForm } from './styles/Board.styled';
|
||||
import { ReplyFormLink, TopBar, BottomBar } from './styles/Thread.styled';
|
||||
import CaptchaModal from '../CaptchaModal';
|
||||
@@ -32,7 +32,7 @@ const Thread = () => {
|
||||
selectedTitle, setSelectedTitle,
|
||||
showPostForm,
|
||||
showPostFormLink
|
||||
} = useAppStore(state => state);
|
||||
} = useGeneralStore(state => state);
|
||||
|
||||
const nameRef = useRef();
|
||||
const commentRef = useRef();
|
||||
|
||||
Reference in New Issue
Block a user