Skip to content

Commit

Permalink
chore(project): move stores to stores folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Jun 14, 2021
1 parent a731660 commit 9a8bd5f
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ConfigProvider from './providers/ConfigProvider';
import QueryProvider from './providers/QueryProvider';
import './i18n/config';
import './styles/main.scss';
import { initializeWatchHistory } from './store/WatchHistoryStore';
import { initializeWatchHistory } from './stores/WatchHistoryStore';

interface State {
error: Error | null;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Helmet } from 'react-helmet';
import { useTranslation } from 'react-i18next';

import useSearchQueryUpdater from '../../hooks/useSearchQueryUpdater';
import { UIStore } from '../../state/UIStore';
import { UIStore } from '../../stores/UIStore';
import Button from '../Button/Button';
import MarkdownComponent from '../MarkdownComponent/MarkdownComponent';
import Header from '../Header/Header';
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Cinema/Cinema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Config } from 'types/Config';
import type { PlaylistItem } from 'types/playlist';
import type { WatchHistoryItem } from 'types/watchHistory';

import { watchHistoryStore, useWatchHistoryUpdater } from '../../store/WatchHistoryStore';
import { watchHistoryStore, useWatchHistoryUpdater } from '../../stores/WatchHistoryStore';
import { ConfigContext } from '../../providers/ConfigProvider';
import { addScript } from '../../utils/dom';

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useBlurImageUpdater.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect } from 'react';

import { UIStore } from '../state/UIStore';
import { UIStore } from '../stores/UIStore';
import type { PlaylistItem } from '../../types/playlist';

const useBlurImageUpdater = (playlist: PlaylistItem[]) => {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSearchQueryUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback, useRef } from 'react';
import { useHistory } from 'react-router';

import { debounce } from '../utils/common';
import { UIStore } from '../state/UIStore';
import { UIStore } from '../stores/UIStore';

const useSearchQueryUpdater = () => {
const history = useHistory();
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { RouteComponentProps } from 'react-router-dom';
import { useHistory } from 'react-router';

import useBlurImageUpdater from '../../hooks/useBlurImageUpdater';
import { UIStore } from '../../state/UIStore';
import { UIStore } from '../../stores/UIStore';
import useSearchQueryUpdater from '../../hooks/useSearchQueryUpdater';
import ErrorPage from '../../components/ErrorPage/ErrorPage';
import type { PlaylistItem } from '../../../types/playlist';
Expand Down
13 changes: 0 additions & 13 deletions src/state/WatchHistoryStore.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9a8bd5f

Please sign in to comment.