@akinon/pz-basket-gift-pack 1.89.0-rc.1 → 1.89.0-rc.11
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/CHANGELOG.md +36 -0
- package/package.json +1 -1
- package/src/index.tsx +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @akinon/pz-basket-gift-pack
|
|
2
2
|
|
|
3
|
+
## 1.89.0-rc.11
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 72bfcbf: ZERO-3347: Manage save button disable status
|
|
8
|
+
|
|
9
|
+
## 1.89.0-rc.10
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 64699d3f: ZERO-2761: Fix invalid import for plugin module
|
|
14
|
+
- 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
|
|
15
|
+
- 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
|
|
16
|
+
|
|
17
|
+
## 1.89.0-rc.9
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 64699d3f: ZERO-2761: Fix invalid import for plugin module
|
|
22
|
+
- 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
|
|
23
|
+
- 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
|
|
24
|
+
|
|
25
|
+
## 1.89.0-rc.8
|
|
26
|
+
|
|
27
|
+
## 1.89.0-rc.7
|
|
28
|
+
|
|
29
|
+
## 1.89.0-rc.6
|
|
30
|
+
|
|
31
|
+
## 1.89.0-rc.5
|
|
32
|
+
|
|
33
|
+
## 1.89.0-rc.4
|
|
34
|
+
|
|
35
|
+
## 1.89.0-rc.3
|
|
36
|
+
|
|
37
|
+
## 1.89.0-rc.2
|
|
38
|
+
|
|
3
39
|
## 1.89.0-rc.1
|
|
4
40
|
|
|
5
41
|
## 1.89.0-rc.0
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -60,6 +60,7 @@ export const BasketGiftPack = ({
|
|
|
60
60
|
charactersLength: 'characters left',
|
|
61
61
|
removeNote: 'Remove Note',
|
|
62
62
|
save: 'SAVE',
|
|
63
|
+
saving: 'SAVING...',
|
|
63
64
|
close: 'Close'
|
|
64
65
|
};
|
|
65
66
|
|
|
@@ -68,7 +69,8 @@ export const BasketGiftPack = ({
|
|
|
68
69
|
...translations
|
|
69
70
|
};
|
|
70
71
|
|
|
71
|
-
const [addGiftPackage] =
|
|
72
|
+
const [addGiftPackage, { isLoading: isAddingGiftPackage }] =
|
|
73
|
+
useAddGiftPackageMutation();
|
|
72
74
|
const [removeGiftPackage] = useRemoveGiftPackageMutation();
|
|
73
75
|
const [hasGiftPack, setHasGiftPack] = useState(false);
|
|
74
76
|
const [hasNote, setHasNote] = useState({
|
|
@@ -190,8 +192,14 @@ export const BasketGiftPack = ({
|
|
|
190
192
|
type="submit"
|
|
191
193
|
className="w-28 h-7 font-medium uppercase"
|
|
192
194
|
data-testid="basket-gift-pack-note-save-button"
|
|
195
|
+
disabled={
|
|
196
|
+
isAddingGiftPackage ||
|
|
197
|
+
textAreaCount === 0 ||
|
|
198
|
+
note.trim() === '' ||
|
|
199
|
+
note === defaultMessage
|
|
200
|
+
}
|
|
193
201
|
>
|
|
194
|
-
{_translations.save}
|
|
202
|
+
{isAddingGiftPackage ? _translations.saving : _translations.save}
|
|
195
203
|
</Button>
|
|
196
204
|
</div>
|
|
197
205
|
</div>
|