@c-rex/components 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-rex/components",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "files": [
5
5
  "src"
6
6
  ],
@@ -17,7 +17,6 @@ import { useTranslations } from "next-intl"
17
17
  import { LanguageAndCountries } from "@c-rex/interfaces"
18
18
  import { WILD_CARD_OPTIONS, OPERATOR_OPTIONS } from "@c-rex/constants"
19
19
  import { Switch } from "@c-rex/ui/switch"
20
- import { useSearchContext } from "@c-rex/contexts/search"
21
20
  import { useSearchSettingsStore } from "./stores/search-settings-store"
22
21
  import { OperatorType, WildCardType } from "@c-rex/types"
23
22
  import { useLanguageStore } from "./stores/language-store"
@@ -33,7 +32,6 @@ interface Languages {
33
32
 
34
33
  export const DialogFilter: FC<DialogFilterProps> = ({ trigger }) => {
35
34
  const t = useTranslations("filter");
36
- const { setLoading } = useSearchContext();
37
35
 
38
36
  const savedLike = useSearchSettingsStore((state) => state.like)
39
37
  const savedOperator = useSearchSettingsStore((state) => state.operator)
@@ -92,7 +90,6 @@ export const DialogFilter: FC<DialogFilterProps> = ({ trigger }) => {
92
90
  return
93
91
  }
94
92
 
95
- setLoading(true);
96
93
  setParams({
97
94
  page: 1,
98
95
  language: selectedLanguages.join(','),
@@ -8,7 +8,6 @@ import {
8
8
  PaginationPrevious,
9
9
  } from "@c-rex/ui/pagination"
10
10
  import { parseAsInteger, useQueryState } from "nuqs";
11
- import { useSearchContext } from "@c-rex/contexts/search";
12
11
 
13
12
  interface PaginationProps {
14
13
  totalPages: number;
@@ -17,7 +16,6 @@ interface PaginationProps {
17
16
 
18
17
  export const Pagination: FC<PaginationProps> = ({ totalPages, currentPage }) => {
19
18
  const disabledClass = "opacity-50 pointer-events-none";
20
- const { setLoading } = useSearchContext();
21
19
 
22
20
  const [_, setPage] = useQueryState('page',
23
21
  parseAsInteger.withOptions({
@@ -27,7 +25,6 @@ export const Pagination: FC<PaginationProps> = ({ totalPages, currentPage }) =>
27
25
  )
28
26
 
29
27
  const onChangePage = (pageNumber: number) => {
30
- setLoading(true);
31
28
  setPage(pageNumber);
32
29
  }
33
30