@bjsdistribution/dms-client-return 0.0.69 → 0.0.71

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,5 +1,5 @@
1
1
  {
2
- "version": "0.0.69",
2
+ "version": "0.0.71",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -278,7 +278,7 @@ const OrderTable = () => {
278
278
  cancelled: 'Cancelled',
279
279
  OO: 'On Hold',
280
280
  SC: 'Sub-Contracted',
281
- 'awaiting route': 'Awaiting route',
281
+ 'awaiting route': 'Awaiting',
282
282
  'awaiting confirmation': 'Awaiting',
283
283
  completed: 'completed',
284
284
  outstanding: 'Outstanding',
@@ -194,7 +194,7 @@ const ReturnOrderFilter = () => {
194
194
  className="custom-select"
195
195
  placeholder="Status of Order"
196
196
  onChange={handleStatusOfOrder}
197
- style={{ width: '145px' }}
197
+ style={{ minWidth: '150px', width: 'auto' }}
198
198
  value={statusOrder}
199
199
  onClear={handleClear}
200
200
  allowClear
@@ -209,10 +209,10 @@ const ReturnOrderFilter = () => {
209
209
  <Select
210
210
  options={clientOptions}
211
211
  className="custom-select"
212
- placeholder="Client"
212
+ placeholder="Clients"
213
213
  onChange={handleClientChange}
214
214
  value={selectedClient}
215
- style={{ width: '125px', border: 'none' }}
215
+ style={{ minWidth: '150px', width: 'auto' }}
216
216
  allowClear
217
217
  onClear={handleClearClient}
218
218
  />
@@ -33,7 +33,7 @@ function DeliveryDate() {
33
33
  const today = new Date();
34
34
  const tomorrow = new Date(today);
35
35
  tomorrow.setDate(today.getDate() + 1);
36
-
36
+ //confirm popouop
37
37
  return (
38
38
  <Container>
39
39
  <Label>Delivery Date</Label>
@@ -43,6 +43,7 @@ function DeliveryDate() {
43
43
  value={deliveryDate ? dayjs(deliveryDate) : null}
44
44
  style={{ borderRadius: '15px' }}
45
45
  minDate={dayjs(tomorrow)}
46
+ allowClear={false}
46
47
  />
47
48
  </Container>
48
49
  );
@@ -5,7 +5,7 @@ import CustomerInformation from './customer-info';
5
5
  import ProductTable from './tables/ProductTable';
6
6
  import NotesTable from './tables/NotesTable';
7
7
  import SlotAndInstructions from './slot-and-instructions';
8
- import { Alert, useApiHook } from '@bjsdistribution/dms-component-library';
8
+ import { useApiHook } from '@bjsdistribution/dms-component-library';
9
9
  import {
10
10
  useCurrentAction,
11
11
  useCustomerInfo,
@@ -217,14 +217,14 @@ function ConfirmOrder() {
217
217
  isSubmitDisabled={errorFound()}
218
218
  >
219
219
  <ContentContainer>
220
- <Alert
220
+ {/* <Alert
221
221
  description=""
222
222
  onClose={() => {}}
223
223
  type="info"
224
224
  title="There is Orders with identical postcodes that are yet to be delivered.View Orders"
225
225
  showOkButton={false}
226
226
  showCloseIcon={false}
227
- />
227
+ /> */}
228
228
  <Wrapper>
229
229
  <CustomerInformation />
230
230
  <SlotAndInstructions />
@@ -46,14 +46,16 @@ function DeliveryDate() {
46
46
  });
47
47
  }
48
48
  };
49
+
49
50
  return (
50
51
  <MainContainer>
51
- <Label label="Delivery Date" />
52
+ <Label label="Delivery Date next" />
52
53
  <DatePicker
53
54
  onChange={onChange}
54
55
  value={actionDate === null ? actionDate : dayjs(actionDate)}
55
56
  format="DD/MM/YY"
56
57
  style={{ borderRadius: '25px' }}
58
+ allowClear={false}
57
59
  />
58
60
  </MainContainer>
59
61
  );
@@ -52,7 +52,8 @@ const Container = styled.div`
52
52
  display: flex;
53
53
  flex-direction: column;
54
54
  gap: 6px;
55
- flex: 1;
55
+ // flex: 1;
56
+ min-width: 250px;
56
57
  `;
57
58
  const StyledSelectDropdown = styled(SelectDropdown)`
58
59
  &.disabled {
@@ -44,7 +44,8 @@ const Container = styled.div`
44
44
  display: flex;
45
45
  flex-direction: column;
46
46
  gap: 6px;
47
- flex: 1;
47
+ // flex: 1;
48
+ min-width: 250px;
48
49
  `;
49
50
 
50
51
  const StyledSelectDropdown = styled(SelectDropdown)`