mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
refactor: rename store folder to stores
This commit is contained in:
@@ -4,7 +4,7 @@ import { Text } from '@mantine/core';
|
||||
import { useEffect, useRef } from 'react';
|
||||
import { AiFillFolderOpen, AiOutlineFolder } from 'react-icons/ai';
|
||||
import { appendCollectionId } from '~/lib/navigation';
|
||||
import { useActiveCollection } from '~/store/collection_store';
|
||||
import { useActiveCollection } from '~/stores/collection_store';
|
||||
import { CollectionWithLinks } from '~/types/app';
|
||||
import classes from './collection_item.module.css';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Box, ScrollArea, Text } from '@mantine/core';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import CollectionItem from '~/components/dashboard/collection/item/collection_item';
|
||||
import useShortcut from '~/hooks/use_shortcut';
|
||||
import { useActiveCollection, useCollections } from '~/store/collection_store';
|
||||
import { useActiveCollection, useCollections } from '~/stores/collection_store';
|
||||
import styles from './collection_list.module.css';
|
||||
|
||||
export default function CollectionList() {
|
||||
|
||||
@@ -7,7 +7,7 @@ import { GoPencil } from 'react-icons/go';
|
||||
import { IoIosAddCircleOutline } from 'react-icons/io';
|
||||
import { IoTrashOutline } from 'react-icons/io5';
|
||||
import { appendCollectionId } from '~/lib/navigation';
|
||||
import { useActiveCollection } from '~/store/collection_store';
|
||||
import { useActiveCollection } from '~/stores/collection_store';
|
||||
|
||||
interface DashboardHeaderProps {
|
||||
navbar: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Box, Group, ScrollArea, Stack, Text } from '@mantine/core';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { FavoriteItem } from '~/components/dashboard/favorite/item/favorite_item';
|
||||
import { useFavorites } from '~/store/collection_store';
|
||||
import { useFavorites } from '~/stores/collection_store';
|
||||
import styles from './favorite_list.module.css';
|
||||
|
||||
export function FavoriteList() {
|
||||
|
||||
@@ -9,7 +9,7 @@ import { IoTrashOutline } from 'react-icons/io5';
|
||||
import { MdFavorite, MdFavoriteBorder } from 'react-icons/md';
|
||||
import { onFavorite } from '~/lib/favorite';
|
||||
import { appendCollectionId, appendLinkId } from '~/lib/navigation';
|
||||
import { useFavorites } from '~/store/collection_store';
|
||||
import { useFavorites } from '~/stores/collection_store';
|
||||
import { Link } from '~/types/app';
|
||||
|
||||
interface LinksControlsProps {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { route } from '@izzyjs/route/client';
|
||||
import { Anchor, Box, Text } from '@mantine/core';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { appendCollectionId } from '~/lib/navigation';
|
||||
import { useActiveCollection } from '~/store/collection_store';
|
||||
import { useActiveCollection } from '~/stores/collection_store';
|
||||
import styles from './no_link.module.css';
|
||||
|
||||
export function NoLink() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import KEYS from '#constants/keys';
|
||||
import { useHotkeys } from 'react-hotkeys-hook';
|
||||
import { useGlobalHotkeysStore } from '~/store/global_hotkeys_store';
|
||||
import { useGlobalHotkeysStore } from '~/stores/global_hotkeys_store';
|
||||
|
||||
type ShortcutOptions = {
|
||||
enabled?: boolean;
|
||||
|
||||
@@ -16,8 +16,8 @@ import { appendCollectionId } from '~/lib/navigation';
|
||||
import {
|
||||
useActiveCollection,
|
||||
useCollectionsSetter,
|
||||
} from '~/store/collection_store';
|
||||
import { useGlobalHotkeysStore } from '~/store/global_hotkeys_store';
|
||||
} from '~/stores/collection_store';
|
||||
import { useGlobalHotkeysStore } from '~/stores/global_hotkeys_store';
|
||||
import { CollectionWithLinks } from '~/types/app';
|
||||
import classes from './dashboard.module.css';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user