customer v1.0.0
This commit is contained in:
parent
0df1417dda
commit
853d106630
@ -108,7 +108,7 @@ export default function App() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
useUserAccountFetcher<UserAccount>({
|
useUserAccountFetcher<UserAccount>({
|
||||||
url: `${process.env.REACT_APP_DOMAIN}/customer/account`,
|
url: `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0/account`,
|
||||||
userId,
|
userId,
|
||||||
onNewUserAccount: setCustomerAccount,
|
onNewUserAccount: setCustomerAccount,
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { parseAxiosError } from "@utils/parse-error";
|
|||||||
|
|
||||||
import type { UserAccount } from "@frontend/kitui";
|
import type { UserAccount } from "@frontend/kitui";
|
||||||
|
|
||||||
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/cart`;
|
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0/cart`;
|
||||||
|
|
||||||
const payCart = async (): Promise<[UserAccount | null, string?]> => {
|
const payCart = async (): Promise<[UserAccount | null, string?]> => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export const getUser = async (): Promise<[UserAccount | null, string?]> => {
|
|||||||
try {
|
try {
|
||||||
const user = await makeRequest<never, UserAccount>({
|
const user = await makeRequest<never, UserAccount>({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: `${process.env.REACT_APP_DOMAIN}/customer/account`,
|
url: `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0/account`,
|
||||||
});
|
});
|
||||||
|
|
||||||
return [user];
|
return [user];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user