diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-21 10:16:40 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-21 10:16:40 +0700 |
| commit | f34247cbd27d59a77b6729b7f01e5f187c5420fc (patch) | |
| tree | 1661605d492f58f7a78973fb3729f64a044d356f /src/common | |
| parent | 570b867dec4832c201e70ae8a756db70d6af4ac4 (diff) | |
Add page on useResultStore
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/stores/useResultStore.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/stores/useResultStore.ts b/src/common/stores/useResultStore.ts index 09e8146..680db56 100644 --- a/src/common/stores/useResultStore.ts +++ b/src/common/stores/useResultStore.ts @@ -6,12 +6,13 @@ type State = { search: string; company: string; show: string; + page: number; }; companies: SelectOption[]; }; type Action = { - updateFilter: (name: string, value: string) => void; + updateFilter: (name: string, value: string | number) => void; setCompanies: (data: SelectOption[]) => void; }; @@ -20,6 +21,7 @@ export const useResultStore = create<State & Action>((set) => ({ search: "", company: "", show: "1", + page: 1, }, updateFilter: (name, value) => set((state) => ({ |
