Skip to content

Commit

Permalink
Re-enable the table
Browse files Browse the repository at this point in the history
  • Loading branch information
ccali11 committed Sep 19, 2023
1 parent b7df230 commit ede62dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/web/src/composables/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,6 @@ export default function useAnalytics() {
userAnalytics: readonly(userAnalytics),
getUserAnalyticsError: readonly(getUserAnalyticsError),
updateAnalytics,
rawUserAnalytics,
}
}
4 changes: 2 additions & 2 deletions apps/web/src/pages/overview/Overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import BreakdownTable from './components/BreakdownTable.vue'
</div>

<div class="w-full flex justify-between items-start gap-[63px]">
<!-- <div class="h-full w-full overflow-auto">
<div class="h-full w-full overflow-auto">
<BreakdownTable />
</div> -->
</div>
<div class="1000s:sr-only not-sr-only">
<div class="w-[300px]">
<div class="w-full mb-[37px]">
Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/pages/overview/components/BreakdownTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as XLSX from 'xlsx'
import VueFeather from 'vue-feather'
import useUser from '@/composables/user'
import useFormat from '@/composables/format'
import useAnalytics from '@/composables/analytics'
const { convertString } = useFormat()
Expand Down Expand Up @@ -116,7 +117,7 @@ const tableHeaderOptions = ref(
}
)
const { rawUserAnalytics, user } = useUser()
const { user } = useUser()
const tableData = ref({
Wallets: [] as {tx_hash: string, wallet_provider: string, status: string, staking_fees: string, type: string, amount: string, bal: string, act: string, date: string, blank_column: any, stk_amt: string, tx_type: string, stk_rwd: string }[],
Expand Down Expand Up @@ -248,6 +249,9 @@ const removeItemFromCheckedList = (item:any) => {
}
}
const {rawUserAnalytics } = useAnalytics()
const setTableData = () =>{
if(!rawUserAnalytics.value) return
Expand Down

0 comments on commit ede62dd

Please sign in to comment.