feat: Checkout Page

:%s
This commit is contained in:
unknown
2021-09-09 16:18:51 +07:00
parent 346a776bbd
commit 0eed5ab051
24 changed files with 287 additions and 112 deletions

View File

@@ -1,3 +1,11 @@
export function isMobile() {
return window.innerWidth <= 768
}
export function removeItem<T>(arr: Array<T>, value: T): Array<T> {
const index = arr.indexOf(value);
if (index > -1) {
arr.splice(index, 1);
}
return [...arr];
}