reformat with prettier with semicolons and tabs

This commit is contained in:
m5r
2021-07-31 23:57:43 +08:00
parent fc4278ca7b
commit 079241ddb0
80 changed files with 1187 additions and 1270 deletions

View File

@ -1,15 +1,15 @@
import { useQuery } from "blitz"
import { useQuery } from "blitz";
import useCurrentCustomer from "../../core/hooks/use-current-customer"
import getPhoneCalls from "../queries/get-phone-calls"
import useCurrentCustomer from "../../core/hooks/use-current-customer";
import getPhoneCalls from "../queries/get-phone-calls";
export default function usePhoneCalls() {
const { customer } = useCurrentCustomer()
const { customer } = useCurrentCustomer();
if (!customer) {
throw new Error("customer not found")
throw new Error("customer not found");
}
const { phoneCalls } = useQuery(getPhoneCalls, { customerId: customer.id })[0]
const { phoneCalls } = useQuery(getPhoneCalls, { customerId: customer.id })[0];
return phoneCalls
return phoneCalls;
}