fix transaction page
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
// imports
|
||||
|
||||
import { useQuery } from "@tanstack/vue-query";
|
||||
import { useAppParams } from "~/composables/global/useAppParams";
|
||||
import { API_ENDPOINTS, QUERY_KEYS } from "~/constants";
|
||||
import type { ComputedRef } from "vue";
|
||||
|
||||
// types
|
||||
|
||||
export type GetTransactionResponse = Transaction;
|
||||
|
||||
const useGetTransaction = () => {
|
||||
const useGetTransaction = (tracking_code: ComputedRef<string>) => {
|
||||
// state
|
||||
|
||||
const { $axios: axios } = useNuxtApp();
|
||||
|
||||
const { tracking_code } = useAppParams();
|
||||
|
||||
// methods
|
||||
|
||||
const handleGetTransaction = async () => {
|
||||
|
||||
Reference in New Issue
Block a user