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 { export interface IShipmentResponse {
shipment_id: string shipment_id: string;
order_id: string order_id: string;
courier: string courier: string;
has_api: boolean has_api: boolean;
courier_id: number courier_id: number;
tracking_code: string tracking_code: string;
tracking_link: string tracking_link: string;
user_notified: boolean user_notified: boolean;
} }
export interface ICourier { export interface ICourier {
courier_id: number courier_id: number;
name: string name: string;
website: string website: string;
has_api: boolean has_api: boolean;
} }

View File

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

View File

@@ -237,7 +237,8 @@
align-items: center; 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; display: inline-block;
margin-bottom: auto; margin-bottom: auto;
min-width: 30%; min-width: 30%;