From a897799f600e25ed10c9ef4b7e5091bc1b7a6a5a Mon Sep 17 00:00:00 2001 From: franco sanchez Date: Mon, 20 May 2024 19:12:46 -0300 Subject: [PATCH] chore: corrected a misspelled file name --- src/components/AllBooks.tsx | 2 +- src/components/Categories.tsx | 2 +- src/components/MostViewed.tsx | 2 +- src/components/cards/MoreBooks.tsx | 2 +- src/components/cards/MoreBooksAuthors.tsx | 2 +- src/components/cards/RelatedBooks.tsx | 2 +- src/components/forms/FormCreateUser.tsx | 2 +- src/components/forms/FormEdit.tsx | 2 +- src/components/forms/NewBook.tsx | 2 +- src/components/forms/filters/Filter.tsx | 2 +- src/components/forms/filters/InputSearch.tsx | 2 +- src/components/nav/DesktopNav.tsx | 2 +- src/components/nav/MobileNav.tsx | 2 +- src/hooks/{querys.ts => queries.ts} | 0 src/pages/Book.tsx | 2 +- src/pages/Home.tsx | 2 +- src/pages/MostViewed.tsx | 2 +- src/pages/Search.tsx | 2 +- 18 files changed, 17 insertions(+), 17 deletions(-) rename src/hooks/{querys.ts => queries.ts} (100%) diff --git a/src/components/AllBooks.tsx b/src/components/AllBooks.tsx index 9594d33..fb00302 100644 --- a/src/components/AllBooks.tsx +++ b/src/components/AllBooks.tsx @@ -11,7 +11,7 @@ import { import { useInView } from 'react-intersection-observer'; import { CardType } from '@components/types'; -import { useBooksPaginate } from '@hooks/querys'; +import { useBooksPaginate } from '@hooks/queries'; import { MySimpleGrid } from '@components/MySimpleGrid'; import { Card } from '@components/cards/Card'; import { Aside } from '@components/Aside'; diff --git a/src/components/Categories.tsx b/src/components/Categories.tsx index 3451431..5977ed6 100644 --- a/src/components/Categories.tsx +++ b/src/components/Categories.tsx @@ -4,7 +4,7 @@ import { Link } from '@chakra-ui/react'; import { BsTag } from 'react-icons/bs'; import { MyTag } from '@components/MyTag'; -import { useAllFilterOptions } from '@hooks/querys'; +import { useAllFilterOptions } from '@hooks/queries'; export default function Categories() { const { data } = useAllFilterOptions(); diff --git a/src/components/MostViewed.tsx b/src/components/MostViewed.tsx index a428056..31cc989 100644 --- a/src/components/MostViewed.tsx +++ b/src/components/MostViewed.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { NavLink } from 'react-router-dom'; import { Box, Flex, Link } from '@chakra-ui/react'; -import { useMostViewedBooks } from '@hooks/querys'; +import { useMostViewedBooks } from '@hooks/queries'; export function MostViewed() { const { data } = useMostViewedBooks('summary'); diff --git a/src/components/cards/MoreBooks.tsx b/src/components/cards/MoreBooks.tsx index bae2e20..c13a5cf 100644 --- a/src/components/cards/MoreBooks.tsx +++ b/src/components/cards/MoreBooks.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { RelatedCard } from '@components/cards/RelatedCard'; import { ContainerRCard } from '@components/cards/ContainerRCard'; import { CardType, RelatedBooksType } from '@components/types'; -import { useMoreBooks } from '@hooks/querys'; +import { useMoreBooks } from '@hooks/queries'; import { useRefetchLocation } from '@hooks/useRefetchLocation'; export default function MoreBooks({ currentBookId }: RelatedBooksType) { diff --git a/src/components/cards/MoreBooksAuthors.tsx b/src/components/cards/MoreBooksAuthors.tsx index 7943fc6..09f2268 100644 --- a/src/components/cards/MoreBooksAuthors.tsx +++ b/src/components/cards/MoreBooksAuthors.tsx @@ -4,7 +4,7 @@ import { Box, Text } from '@chakra-ui/react'; import { RelatedCard } from '@components/cards/RelatedCard'; import { ContainerRCard } from '@components/cards/ContainerRCard'; import { CardType, RelatedBooksType } from '@components/types'; -import { useMoreBooksAuthors } from '@hooks/querys'; +import { useMoreBooksAuthors } from '@hooks/queries'; import { useRefetchLocation } from '@hooks/useRefetchLocation'; export default function MoreBooksAuthors({ diff --git a/src/components/cards/RelatedBooks.tsx b/src/components/cards/RelatedBooks.tsx index ae5fe96..5a0a369 100644 --- a/src/components/cards/RelatedBooks.tsx +++ b/src/components/cards/RelatedBooks.tsx @@ -4,7 +4,7 @@ import { Box, Text } from '@chakra-ui/react'; import { RelatedCard } from '@components/cards/RelatedCard'; import { ContainerRCard } from '@components/cards/ContainerRCard'; import { CardType, RelatedBooksType } from '@components/types'; -import { useRelatedBooks } from '@hooks/querys'; +import { useRelatedBooks } from '@hooks/queries'; import { useRefetchLocation } from '@hooks/useRefetchLocation'; export default function RelatedBooks({ currentBookId, id }: RelatedBooksType) { diff --git a/src/components/forms/FormCreateUser.tsx b/src/components/forms/FormCreateUser.tsx index 19244e0..51d980a 100644 --- a/src/components/forms/FormCreateUser.tsx +++ b/src/components/forms/FormCreateUser.tsx @@ -11,7 +11,7 @@ import { useColorModeValue, } from '@chakra-ui/react'; -import { useUserRegister } from '@hooks/querys'; +import { useUserRegister } from '@hooks/queries'; export function FormCreateUser() { const [username, setUsername] = useState(''); diff --git a/src/components/forms/FormEdit.tsx b/src/components/forms/FormEdit.tsx index f93f9ea..013a64d 100644 --- a/src/components/forms/FormEdit.tsx +++ b/src/components/forms/FormEdit.tsx @@ -25,7 +25,7 @@ import { IoWarningSharp } from 'react-icons/io5'; import { categories, formats, languages } from '../../data/links'; import { BookType, MyChangeEvent } from '@components/types'; -import { useUpdateBook } from '@hooks/querys'; +import { useUpdateBook } from '@hooks/queries'; import { ModalCropper } from '@components/modals/ModalCropper'; import { sortArrayByLabel } from '@utils/utils'; import { MyPopover } from '@components/MyPopover'; diff --git a/src/components/forms/NewBook.tsx b/src/components/forms/NewBook.tsx index 2b8665d..52e2d3e 100644 --- a/src/components/forms/NewBook.tsx +++ b/src/components/forms/NewBook.tsx @@ -25,7 +25,7 @@ import { IoWarningSharp } from 'react-icons/io5'; import { categories, formats, languages } from '../../data/links'; import { BookType, MyChangeEvent } from '@components/types'; -import { useMutatePost, useCheckUser } from '@hooks/querys'; +import { useMutatePost, useCheckUser } from '@hooks/queries'; import { ModalCropper } from '@components/modals/ModalCropper'; import { sortArrayByLabel } from '@utils/utils'; import { useGenerateSlug } from '@hooks/useGenerateSlug'; diff --git a/src/components/forms/filters/Filter.tsx b/src/components/forms/filters/Filter.tsx index df659bd..7039184 100644 --- a/src/components/forms/filters/Filter.tsx +++ b/src/components/forms/filters/Filter.tsx @@ -9,7 +9,7 @@ import { } from '@chakra-ui/react'; import { FiSearch } from 'react-icons/fi'; -import { useAllFilterOptions } from '@hooks/querys'; +import { useAllFilterOptions } from '@hooks/queries'; import { SelectType } from '@components/types'; interface Props { diff --git a/src/components/forms/filters/InputSearch.tsx b/src/components/forms/filters/InputSearch.tsx index a4612a2..ea94525 100644 --- a/src/components/forms/filters/InputSearch.tsx +++ b/src/components/forms/filters/InputSearch.tsx @@ -23,7 +23,7 @@ import { import { CgOptions } from 'react-icons/cg'; import { FiSearch } from 'react-icons/fi'; -import { useAllSearchBooks } from '@hooks/querys'; +import { useAllSearchBooks } from '@hooks/queries'; import { useDebounce } from '@hooks/useDebounce'; import { BookSearchResultsType } from '@components/types'; diff --git a/src/components/nav/DesktopNav.tsx b/src/components/nav/DesktopNav.tsx index c11c621..d56c400 100644 --- a/src/components/nav/DesktopNav.tsx +++ b/src/components/nav/DesktopNav.tsx @@ -19,7 +19,7 @@ import { MenuProfile } from '@components/nav/menu/MenuProfile'; import { InputSearch } from '@components/forms/filters/InputSearch'; import { ModalFilter } from '@components/modals/ModalFilter'; import { useAuth } from '@contexts/AuthContext'; -import { useUserData } from '@hooks/querys'; +import { useUserData } from '@hooks/queries'; export function DesktopNav() { const { currentUser } = useAuth(); diff --git a/src/components/nav/MobileNav.tsx b/src/components/nav/MobileNav.tsx index 6c6ea44..2963912 100644 --- a/src/components/nav/MobileNav.tsx +++ b/src/components/nav/MobileNav.tsx @@ -29,7 +29,7 @@ import { InputSearch } from '@components/forms/filters/InputSearch'; import { ModalFilter } from '@components/modals/ModalFilter'; import { MenuProfile } from '@components/nav/menu/MenuProfile'; import { useAuth } from '@contexts/AuthContext'; -import { useUserData } from '@hooks/querys'; +import { useUserData } from '@hooks/queries'; export function MobileNav() { const { currentUser } = useAuth(); diff --git a/src/hooks/querys.ts b/src/hooks/queries.ts similarity index 100% rename from src/hooks/querys.ts rename to src/hooks/queries.ts diff --git a/src/pages/Book.tsx b/src/pages/Book.tsx index 028976c..d3e5eae 100644 --- a/src/pages/Book.tsx +++ b/src/pages/Book.tsx @@ -24,7 +24,7 @@ import { BsTag } from 'react-icons/bs'; import { FaCheckCircle } from 'react-icons/fa'; import LazyLoad from 'react-lazy-load'; -import { useBook, useDeleteBook } from '@hooks/querys'; +import { useBook, useDeleteBook } from '@hooks/queries'; import { handleImageLoad } from '@utils/utils'; import { MainHead } from '@components/Head'; import { MyTag } from '@components/MyTag'; diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index ba10af6..9fd4d0f 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -25,7 +25,7 @@ import { ImgBook, BookReading, } from '@assets/assets'; -import { useUserData } from '@hooks/querys'; +import { useUserData } from '@hooks/queries'; export function Home() { const { colorMode } = useColorMode(); diff --git a/src/pages/MostViewed.tsx b/src/pages/MostViewed.tsx index 2778db9..0d97f31 100644 --- a/src/pages/MostViewed.tsx +++ b/src/pages/MostViewed.tsx @@ -5,7 +5,7 @@ import { ContainerTitle } from '@components/ContainerTitle'; import { MySimpleGrid } from '@components/MySimpleGrid'; import { Card } from '@components/cards/Card'; import { CardType } from '@components/types'; -import { useMostViewedBooks } from '@hooks/querys'; +import { useMostViewedBooks } from '@hooks/queries'; import { MySliderCategories } from '@components/MySliderCategories'; export default function MostViewed() { diff --git a/src/pages/Search.tsx b/src/pages/Search.tsx index 3876b67..9b79a96 100644 --- a/src/pages/Search.tsx +++ b/src/pages/Search.tsx @@ -15,7 +15,7 @@ import { import { Card } from '@components/cards/Card'; import { CardType, LanguageAndYearType } from '@components/types'; -import { useFilter } from '@hooks/querys'; +import { useFilter } from '@hooks/queries'; import { ContainerTitle } from '@components/ContainerTitle'; import { MySimpleGrid } from '@components/MySimpleGrid'; import { MainHead } from '@components/Head';