+
{{ bullet.text }}
diff --git a/src/components/bullet/bullet-point.vue b/src/components/bullet/bullet-point.vue
index 7d36e374..c247faad 100644
--- a/src/components/bullet/bullet-point.vue
+++ b/src/components/bullet/bullet-point.vue
@@ -4,15 +4,31 @@
-->
diff --git a/src/components/button/button-square.vue b/src/components/button/button-square.vue
index ee1e8a4e..0c1b1146 100644
--- a/src/components/button/button-square.vue
+++ b/src/components/button/button-square.vue
@@ -6,7 +6,7 @@
diff --git a/src/components/sheet/sheet-add-gmail.vue b/src/components/sheet/sheet-add-gmail.vue
new file mode 100644
index 00000000..ce61284d
--- /dev/null
+++ b/src/components/sheet/sheet-add-gmail.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
(form = val)"
+ />
+
+
+
diff --git a/src/components/sheet/sheet-add-retailer.vue b/src/components/sheet/sheet-add-retailer.vue
new file mode 100644
index 00000000..ae217048
--- /dev/null
+++ b/src/components/sheet/sheet-add-retailer.vue
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
(form = val)"
+ />
+
+
+
diff --git a/src/components/sheet/sheet-bottom.vue b/src/components/sheet/sheet-bottom.vue
index 217525b4..3d95e3fa 100644
--- a/src/components/sheet/sheet-bottom.vue
+++ b/src/components/sheet/sheet-bottom.vue
@@ -7,15 +7,13 @@
import { ref, watch } from "vue";
const props = defineProps({
- color: String,
- height: String,
show: {
type: Boolean,
required: false,
default: true,
},
});
-const emit = defineEmits(["dismiss"]);
+defineEmits(["dismiss"]);
const isShow = ref(props.show);
watch(
() => props.show,
@@ -45,12 +43,6 @@ watch(
position: fixed;
}
-@media (prefers-color-scheme: dark) {
- .overlay {
- //background-color: rgba(0, 0, 0, 70%);
- }
-}
-
.bottom-sheet {
background-color: var(--tiki-secondary-background-color);
position: fixed;
diff --git a/src/components/sheet/sheet-connected.vue b/src/components/sheet/sheet-connected.vue
deleted file mode 100644
index b4bdfa21..00000000
--- a/src/components/sheet/sheet-connected.vue
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/components/sheet/sheet-gmail.vue b/src/components/sheet/sheet-gmail.vue
new file mode 100644
index 00000000..b6192aed
--- /dev/null
+++ b/src/components/sheet/sheet-gmail.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/sheet/sheet-google.vue b/src/components/sheet/sheet-google.vue
deleted file mode 100644
index 6b09b955..00000000
--- a/src/components/sheet/sheet-google.vue
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/sheet/sheet-home.vue b/src/components/sheet/sheet-home.vue
index 509bbcb5..5ab991ab 100644
--- a/src/components/sheet/sheet-home.vue
+++ b/src/components/sheet/sheet-home.vue
@@ -5,66 +5,99 @@
-
-
-
-
diff --git a/src/components/sheet/sheet-link-gmail.vue b/src/components/sheet/sheet-link-gmail.vue
deleted file mode 100644
index de4620c7..00000000
--- a/src/components/sheet/sheet-link-gmail.vue
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/sheet/sheet-link-retailer.vue b/src/components/sheet/sheet-link-retailer.vue
deleted file mode 100644
index 7b0a093f..00000000
--- a/src/components/sheet/sheet-link-retailer.vue
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/sheet/sheet-offer.vue b/src/components/sheet/sheet-offer.vue
index 83cd872b..f35b2f8e 100644
--- a/src/components/sheet/sheet-offer.vue
+++ b/src/components/sheet/sheet-offer.vue
@@ -5,9 +5,7 @@
-
-
-
-
diff --git a/src/components/sheet/sheet-retailer.vue b/src/components/sheet/sheet-retailer.vue
index 8d62944c..54931496 100644
--- a/src/components/sheet/sheet-retailer.vue
+++ b/src/components/sheet/sheet-retailer.vue
@@ -7,42 +7,37 @@
import HeaderBack from "@/components/header/header-back.vue";
import ButtonText from "@/components/button/button-text.vue";
import AccountList from "@/components/account/account-list.vue";
-import { AccountCreds } from "@/components/account/account-creds";
-import * as AccountTypes from "@/components/account/account-type";
+import type { TikiService } from "@/service";
+import { inject, ref } from "vue";
+import type { Account } from "@mytiki/capture-receipt-capacitor";
-defineEmits(["back", "close", "link"]);
-const props = defineProps({
- accounts: {
- type: Array
,
- required: false,
- default: [
- {
- username: "mike@mytiki.com",
- type: AccountTypes.ALBERTSONS,
- isVerified: true,
- },
- {
- username: "mike@mytiki.com",
- type: AccountTypes.CVS,
- isVerified: false,
- },
- ],
- },
+const emit = defineEmits(["back", "close", "add", "skip"]);
+const tiki: TikiService = inject("Tiki")!;
+const filter = (accounts: Account[]): Account[] =>
+ accounts.filter((account) => account.type.type === "RETAILER");
+const accounts = ref(filter(tiki.capture.accounts ?? []));
+if (accounts.value.length == 0) emit("skip");
+
+tiki.capture.onAccount("SheetRetailer", (_, __) => {
+ accounts.value = filter(tiki.capture.accounts ?? []);
});
-const filtered = props.accounts?.filter(
- (account) => account.type.type === "RETAILER",
-);
+const remove = async (account: Account) => {
+ //show warn.
+ await tiki.capture.logout(account);
+};
-
-
-
+