mautourco-components 0.2.113 → 0.2.114
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/dist/components/molecules/LocationDropdown/LocationDropdown.js +2 -0
- package/dist/components/organisms/TransferLine/TransferLine.js +1 -0
- package/package.json +1 -1
- package/src/components/molecules/LocationDropdown/LocationDropdown.tsx +2 -0
- package/src/components/organisms/TransferLine/TransferLine.tsx +1 -0
|
@@ -63,6 +63,7 @@ var LocationDropdown = function (_a) {
|
|
|
63
63
|
id: defaultValue.id,
|
|
64
64
|
locationName: defaultValue.label,
|
|
65
65
|
};
|
|
66
|
+
console.log('defaultLocationData ===>', defaultLocationData);
|
|
66
67
|
onSelectionChange(defaultLocationData);
|
|
67
68
|
}
|
|
68
69
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -75,6 +76,7 @@ var LocationDropdown = function (_a) {
|
|
|
75
76
|
var handleOptionSelect = function (option) {
|
|
76
77
|
if (disabled)
|
|
77
78
|
return;
|
|
79
|
+
console.log('option selected ===>', option);
|
|
78
80
|
var locationData = {
|
|
79
81
|
id: option.id,
|
|
80
82
|
locationName: option.label,
|
|
@@ -186,6 +186,7 @@ var TransferLine = function (_a) {
|
|
|
186
186
|
};
|
|
187
187
|
// Helper to convert LocationData to LocationOption
|
|
188
188
|
var toLocationOption = function (locationData, position) {
|
|
189
|
+
console.log('locationData ===>', locationData);
|
|
189
190
|
if (!locationData)
|
|
190
191
|
return null;
|
|
191
192
|
// Try to find in the options to get the type
|
package/package.json
CHANGED
|
@@ -104,6 +104,7 @@ const LocationDropdown: React.FC<LocationDropdownProps> = ({
|
|
|
104
104
|
id: defaultValue.id,
|
|
105
105
|
locationName: defaultValue.label,
|
|
106
106
|
};
|
|
107
|
+
console.log('defaultLocationData ===>', defaultLocationData);
|
|
107
108
|
onSelectionChange(defaultLocationData);
|
|
108
109
|
}
|
|
109
110
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -117,6 +118,7 @@ const LocationDropdown: React.FC<LocationDropdownProps> = ({
|
|
|
117
118
|
|
|
118
119
|
const handleOptionSelect = (option: LocationOption) => {
|
|
119
120
|
if (disabled) return;
|
|
121
|
+
console.log('option selected ===>', option);
|
|
120
122
|
const locationData: LocationData = {
|
|
121
123
|
id: option.id,
|
|
122
124
|
locationName: option.label,
|
|
@@ -291,6 +291,7 @@ const TransferLine: React.FC<TransferLineProps> = ({
|
|
|
291
291
|
locationData: LocationData | null,
|
|
292
292
|
position: 'pickup' | 'dropoff'
|
|
293
293
|
): LocationOption | null => {
|
|
294
|
+
console.log('locationData ===>', locationData);
|
|
294
295
|
if (!locationData) return null;
|
|
295
296
|
|
|
296
297
|
// Try to find in the options to get the type
|