Luis Alvarez
75d485d35a
Moved the fetcher to its own file
2021-02-15 18:50:52 -05:00
Luis Alvarez
c4870a05e8
Moved the handlers to each hook
2021-02-15 18:48:47 -05:00
Luis Alvarez
fe7d6df04f
Added a MutationHandler
2021-02-15 12:02:31 -05:00
Luis Alvarez
bb0b8d2771
Fixed remaining issues with types
2021-02-15 12:02:24 -05:00
Luis Alvarez
499516e967
Updated type
2021-02-15 10:41:57 -05:00
Luis Alvarez
62ed50a646
Fixed product types
2021-02-15 10:15:20 -05:00
Luis Alvarez
b907c31ef2
Removed generics for result and body
2021-02-12 13:13:08 -05:00
Luis Alvarez
505d3fe04b
Removed old use-data lib
2021-02-12 13:01:13 -05:00
Luis Alvarez
1549368c88
Moved useSearch to the new hook
2021-02-12 12:17:36 -05:00
Luis Alvarez
883fbcbcb9
Added a default fetcher
2021-02-11 13:35:17 -05:00
Luis Alvarez
d8de84bed1
Move useCustomer to the new hook
2021-02-11 13:26:09 -05:00
Luis Alvarez
8966f0b583
Moved useWishlist to use new handler
2021-02-11 02:43:09 -05:00
Luis Alvarez
271ed01631
Final touches to the hook handler type
2021-02-10 15:10:48 -05:00
Luis Alvarez
0eeb290eb0
Add more options to the hook handler
2021-02-10 10:51:46 -05:00
Luis Alvarez
5aecb0f303
Updated how the hook input is handled
2021-02-09 13:23:48 -05:00
Luis Alvarez
016be86d9a
Added proper type for fetch input
2021-02-08 22:07:26 -05:00
Luis Alvarez
479b30ba5f
Moved provider to its own file
2021-02-08 21:57:39 -05:00
Luis Alvarez
2a5cbadd3a
Removed duplicated fetcher
2021-02-08 19:50:45 -05:00
Luis Alvarez
7f3174bcd0
Moved SwrOptions type
2021-02-08 18:13:29 -05:00
Luis Alvarez
82c5cd4aba
Updated Fetcher type
2021-02-08 18:00:48 -05:00
Luis Alvarez
8bf42c3b50
Simplified useData types
2021-02-08 17:55:23 -05:00
Luis Alvarez
74c55cc50e
Moved types
2021-02-08 17:16:45 -05:00
Luis Alvarez
17b336017c
Improved HookHandler type
2021-02-08 11:16:14 -05:00
Luis Alvarez
25b14007da
Removed old hook
2021-02-08 11:10:35 -05:00
Luis Alvarez
aab2e7f7cc
Replace use-cart with the new hook
2021-02-08 10:52:35 -05:00
Luis Alvarez
2c9b8b100d
MOving stuff around and adding temporal new files
2021-02-05 17:44:10 -05:00
Luis Alvarez
c06d9dae3a
Merge branch 'master' of https://github.com/vercel/commerce into agnostic
2021-02-03 17:13:59 -05:00
Luis Alvarez
5cfa8241f6
Updated the useAddItem and useRemoveItem hooks
2021-02-02 20:16:47 -05:00
Luis Alvarez
023058dc0c
Moved and updated cart types
2021-02-02 17:49:05 -05:00
Luis Alvarez
e5f0809070
Improved types for operations
2021-01-29 19:24:10 -05:00
Luis Alvarez
172b413521
Making multiple changes
2021-01-29 16:45:50 -05:00
Luis Alvarez
1de3e76513
Switch away from global types
2021-01-29 11:30:17 -05:00
B
3a7d5e2489
Latest Release ( #187 )
...
* Remove duplicated css rules. (#185 )
* Fix typo in the Marquee component (#176 )
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>
* Remove duplicated css rules.
Fix invalid JSX props.
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>
* Fix the body scroll when the sidebar is open (#184 )
* Fix typo in the Marquee component (#176 )
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>
* Fix the body scroll when the sidebar is open
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>
* Remove duplicate class in the I18nWidget comp (#183 )
* Fix typo in the Marquee component (#176 )
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>
* Remove duplicate class name in the I18nWidget comp
This PR removes a duplicate class name in the I18nWidget component.
Co-authored-by: Hugo Lopes <hugo.rodrigues.lopes@gmail.com>
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>
* add horizontal margin to pages when mobile screen (#180 )
* Add cart item options like color and size (#177 )
Co-authored-by: hlopes <hugo.lopes@present-technologies.com>
* Changes
Co-authored-by: Hugo Lopes <hugo.rodrigues.lopes@gmail.com>
Co-authored-by: Hugo Lopes <hugo.lopes@present-technologies.com>
Co-authored-by: Jamie Isaksen <jamie@jamie.no>
Co-authored-by: Vinicius Zucatti <51221635+vczb@users.noreply.github.com>
2021-01-29 12:00:16 -03:00
Luis Alvarez
f541a545f9
Updated cart update hooks
2021-01-28 18:37:07 -05:00
Luis Alvarez
59a4535f0e
More corrections for useCart
2021-01-28 18:34:44 -05:00
Luis Alvarez
3e27b80658
Added new normalizer for the cart to the UI
2021-01-28 15:54:17 -05:00
Luis Alvarez
7cf1ace9fb
Updated normalizer for useData
2021-01-27 15:41:04 -05:00
Luis Alvarez
61fa423673
updated useCart types
2021-01-26 17:10:33 -05:00
Luis Alvarez
7edd5aa182
Moved normalizer to happen after fetch
2021-01-25 16:58:19 -05:00
Luis Alvarez
1588fcf6bb
Minor changes
2021-01-25 15:03:59 -05:00
Luis Alvarez
905d0324f0
Moved types.d.ts to the commerce folder
2021-01-25 14:50:04 -05:00
Luis Alvarez
a49d0a18f8
Added more cart types
2021-01-25 13:51:15 -05:00
Luis Alvarez
8784e05183
Ran prettier fix
2021-01-22 12:17:39 -05:00
mohammadou1
027c4aca70
@hotfix/fixing brand id in use-search ( #174 )
...
to set searchParam brand, should check brandId and not categoryId
Co-authored-by: mohux <m.alolabi@uxbert.com>
2021-01-22 13:59:25 -03:00
Luis Alvarez
fc104c6caf
added useResponse to useWhishlist
2021-01-22 10:51:49 -05:00
Luis Alvarez
bafb8a4479
Added useResponse hook
2021-01-21 21:19:53 -05:00
Luis Alvarez
1db974dabd
Changed the way isEmpty works
2021-01-20 15:29:02 -05:00
Luis Alvarez
a7baff45fc
Bug fix
2021-01-19 18:45:50 -05:00
Luis Alvarez
10318b2fab
Add loading state for data hooks
2021-01-19 17:40:27 -05:00
Luis Alvarez
4a268e738d
Removed some comments
2021-01-19 17:36:09 -05:00