From d35c649bcc65f91f3d50ecde8e249b6ba95715a8 Mon Sep 17 00:00:00 2001 From: Joseph Ojoko Date: Mon, 25 Sep 2023 12:23:49 +0100 Subject: [PATCH] chore: add typings based on generics feature --- components/account/home/PaymentsTable.vue | 3 ++- components/account/home/SubscriptionTable.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/account/home/PaymentsTable.vue b/components/account/home/PaymentsTable.vue index f8f52bd5..756e8e75 100644 --- a/components/account/home/PaymentsTable.vue +++ b/components/account/home/PaymentsTable.vue @@ -2,11 +2,12 @@ import { storeToRefs } from 'pinia'; import { get } from '@vueuse/core'; import { type TableColumn } from '@rotki/ui-library/dist/components/tables/DataTable.vue'; +import { type Payment } from 'types'; import { useMainStore } from '~/store'; const { t } = useI18n(); -const headers: TableColumn[] = [ +const headers: TableColumn[] = [ { label: t('common.plan'), key: 'plan', diff --git a/components/account/home/SubscriptionTable.vue b/components/account/home/SubscriptionTable.vue index 3716c387..5b0ae0b5 100644 --- a/components/account/home/SubscriptionTable.vue +++ b/components/account/home/SubscriptionTable.vue @@ -8,7 +8,7 @@ import { type Subscription } from '~/types'; const { t } = useI18n(); -const headers: TableColumn[] = [ +const headers: TableColumn[] = [ { label: t('common.plan'), key: 'planName',