diff --git a/src/misc.ts b/src/misc.ts index e34c5d201..55042fd12 100644 --- a/src/misc.ts +++ b/src/misc.ts @@ -2,12 +2,10 @@ import { ThemeType } from "@saleor/macaw-ui"; import moment from "moment-timezone"; import { MutationFunction, MutationResult } from "react-apollo"; import { IntlShape } from "react-intl"; -import urlJoin from "url-join"; import { ConfirmButtonTransitionState } from "./components/ConfirmButton"; import { StatusType } from "./components/StatusChip/types"; import { StatusLabelProps } from "./components/StatusLabel"; -import { APP_MOUNT_URI } from "./config"; import { AddressType, AddressTypeInput } from "./customers/types"; import { commonStatusMessages, @@ -292,10 +290,6 @@ export function getUserInitials(user?: User) { : undefined; } -export function createHref(url: string) { - return urlJoin(APP_MOUNT_URI, url); -} - interface AnyEvent { stopPropagation: () => void; } diff --git a/src/orders/components/OrderCustomer/OrderCustomer.tsx b/src/orders/components/OrderCustomer/OrderCustomer.tsx index 069e61662..8005c6c82 100644 --- a/src/orders/components/OrderCustomer/OrderCustomer.tsx +++ b/src/orders/components/OrderCustomer/OrderCustomer.tsx @@ -19,7 +19,7 @@ import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; import { customerUrl } from "../../../customers/urls"; -import { createHref, maybe } from "../../../misc"; +import { maybe } from "../../../misc"; import { OrderDetails_order } from "../../types/OrderDetails"; import { WarehouseClickAndCollectOptionEnum } from "./../../../types/globalTypes"; import messages from "./messages"; @@ -216,7 +216,7 @@ const OrderCustomer: React.FC = props => {
= props => { {productType?.name ?? "..."}