This commit is contained in:
2022-12-30 00:13:25 +01:00
parent aafea78697
commit f82451328b
3 changed files with 16 additions and 15 deletions

View File

@@ -24,19 +24,19 @@ export interface IShipmentEvent {
}
export interface IShipmentResponse {
shipment_id: string
order_id: string
courier: string
has_api: boolean
courier_id: number
tracking_code: string
tracking_link: string
user_notified: boolean
shipment_id: string;
order_id: string;
courier: string;
has_api: boolean;
courier_id: number;
tracking_code: string;
tracking_link: string;
user_notified: boolean;
}
export interface ICourier {
courier_id: number
name: string
website: string
has_api: boolean
}
courier_id: number;
name: string;
website: string;
has_api: boolean;
}

View File

@@ -30,7 +30,7 @@
fetch(url, options)
.then((resp) => resp.json())
.then((response) => shipping = response?.shipment || shipping);
.then((response) => (shipping = response?.shipment || shipping));
}
function addShipment() {

View File

@@ -237,7 +237,8 @@
align-items: center;
}
li span:first-of-type, li label:first-of-type {
li span:first-of-type,
li label:first-of-type {
display: inline-block;
margin-bottom: auto;
min-width: 30%;