refactor: rename stores folder

This commit is contained in:
MAZE 2024-06-15 12:36:47 +04:30
parent c60dcc74ed
commit 2a86a88ed6
31 changed files with 21 additions and 21 deletions

View File

@ -3,7 +3,7 @@ import { useShallow } from 'zustand/react/shallow';
import { BiSolidHeart } from 'react-icons/bi/index';
import { Howler } from 'howler';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import { Container } from '@/components/container';
import { StoreConsumer } from '@/components/store-consumer';

View File

@ -1,7 +1,7 @@
import { useCallback, useEffect } from 'react';
import { BiPause, BiPlay } from 'react-icons/bi/index';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import { useSnackbar } from '@/contexts/snackbar';
import { cn } from '@/helpers/styles';

View File

@ -4,7 +4,7 @@ import { AnimatePresence, motion } from 'framer-motion';
import { Tooltip } from '@/components/tooltip';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import { cn } from '@/helpers/styles';
import { fade, mix, slideX } from '@/lib/motion';

View File

@ -2,7 +2,7 @@ import { MdNotes } from 'react-icons/md/index';
import { Item } from '../item';
import { useNoteStore } from '@/store';
import { useNoteStore } from '@/stores';
interface NotepadProps {
open: () => void;

View File

@ -2,7 +2,7 @@ import { MdOutlineAvTimer } from 'react-icons/md/index';
import { Item } from '../item';
import { usePomodoroStore } from '@/store';
import { usePomodoroStore } from '@/stores';
interface PomodoroProps {
open: () => void;

View File

@ -2,7 +2,7 @@ import { IoShareSocialSharp } from 'react-icons/io5/index';
import { Item } from '../item';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
interface ShareProps {
open: () => void;

View File

@ -1,6 +1,6 @@
import { BiShuffle } from 'react-icons/bi/index';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import { Item } from '../item';

View File

@ -23,7 +23,7 @@ import { ShortcutsModal } from '@/components/modals/shortcuts';
import { SleepTimerModal } from '@/components/modals/sleep-timer';
import { Notepad, Pomodoro } from '@/components/toolbox';
import { fade, mix, slideY } from '@/lib/motion';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import styles from './menu.module.css';
import { useCloseListener } from '@/hooks/use-close-listener';

View File

@ -2,7 +2,7 @@ import { FaPlay, FaRegTrashAlt } from 'react-icons/fa/index';
import styles from './list.module.css';
import { usePresetStore, useSoundStore } from '@/store';
import { usePresetStore, useSoundStore } from '@/stores';
interface ListProps {
close: () => void;

View File

@ -1,7 +1,7 @@
import { useState, type FormEvent } from 'react';
import { cn } from '@/helpers/styles';
import { useSoundStore, usePresetStore } from '@/store';
import { useSoundStore, usePresetStore } from '@/stores';
import styles from './new.module.css';

View File

@ -4,7 +4,7 @@ import { IoCopyOutline, IoCheckmark } from 'react-icons/io5/index';
import { Modal } from '@/components/modal';
import { useCopy } from '@/hooks/use-copy';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import styles from './share-link.module.css';

View File

@ -2,7 +2,7 @@ import { useState, useEffect } from 'react';
import { Modal } from '@/components/modal';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import { useSnackbar } from '@/contexts/snackbar';
import { useCloseListener } from '@/hooks/use-close-listener';
import { cn } from '@/helpers/styles';

View File

@ -3,7 +3,7 @@ import { useEffect, useState, useRef, useMemo } from 'react';
import { Modal } from '@/components/modal';
import { Timer } from '@/components/timer';
import { dispatch } from '@/lib/event';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import { cn } from '@/helpers/styles';
import { FADE_OUT } from '@/constants/events';

View File

@ -1,7 +1,7 @@
import { BiShuffle } from 'react-icons/bi/index';
import { Tooltip } from '@/components/tooltip';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import styles from './shuffle.module.css';

View File

@ -1,7 +1,7 @@
import { BiHeart, BiSolidHeart } from 'react-icons/bi/index';
import { AnimatePresence, motion } from 'framer-motion';
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import { cn } from '@/helpers/styles';
import { fade } from '@/lib/motion';

View File

@ -1,4 +1,4 @@
import { useSoundStore } from '@/store';
import { useSoundStore } from '@/stores';
import styles from './range.module.css';

View File

@ -5,7 +5,7 @@ import { Range } from './range';
import { Favorite } from './favorite';
import { useSound } from '@/hooks/use-sound';
import { useSoundStore, useLoadingStore } from '@/store';
import { useSoundStore, useLoadingStore } from '@/stores';
import { cn } from '@/helpers/styles';
import styles from './sound.module.css';

View File

@ -1,6 +1,6 @@
import { useEffect } from 'react';
import { useSoundStore, useNoteStore, usePresetStore } from '@/store';
import { useSoundStore, useNoteStore, usePresetStore } from '@/stores';
interface StoreConsumerProps {
children: React.ReactNode;

View File

@ -7,7 +7,7 @@ import { FaUndo } from 'react-icons/fa/index';
import { Modal } from '@/components/modal';
import { Button } from './button';
import { useNoteStore } from '@/store';
import { useNoteStore } from '@/stores';
import { useCopy } from '@/hooks/use-copy';
import { download } from '@/helpers/download';

View File

@ -10,7 +10,7 @@ import { Setting } from './setting';
import { useLocalStorage } from '@/hooks/use-local-storage';
import { useSoundEffect } from '@/hooks/use-sound-effect';
import { usePomodoroStore } from '@/store';
import { usePomodoroStore } from '@/stores';
import { useCloseListener } from '@/hooks/use-close-listener';
import styles from './pomodoro.module.css';

View File

@ -1,7 +1,7 @@
import { useMemo, useEffect, useCallback, useState } from 'react';
import { Howl } from 'howler';
import { useLoadingStore } from '@/store';
import { useLoadingStore } from '@/stores';
import { subscribe } from '@/lib/event';
import { useSSR } from './use-ssr';
import { FADE_OUT } from '@/constants/events';