From 7e40cabd01d737d07fc3040fc8186dd1f4f6913c Mon Sep 17 00:00:00 2001 From: Alex Efremov Date: Wed, 17 Jul 2024 15:04:59 +0700 Subject: [PATCH] Change behaviour to work with orderForm instead of full impersonating --- manifest.json | 3 +- react/components/LogoutCustomerSession.tsx | 8 +- react/components/TelemarketingContainer.tsx | 93 ++++++++++++++------- react/package.json | 4 +- react/yarn.lock | 34 +++++++- yarn.lock | 4 + 6 files changed, 108 insertions(+), 38 deletions(-) create mode 100644 yarn.lock diff --git a/manifest.json b/manifest.json index 2eb4b87..c87aebb 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "vendor": "vtex", "name": "telemarketing", - "version": "2.12.1", + "version": "2.12.1-beta.1", "title": "VTEX Telemarketing", "defaultLocale": "pt-BR", "description": "The VTEX telemarketing app", @@ -24,6 +24,7 @@ "vtex.react-portal": "0.x", "vtex.store-icons": "0.x", "vtex.device-detector": "0.x", + "vtex.order-manager": "0.x", "vtex.css-handles": "0.x" }, "$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema" diff --git a/react/components/LogoutCustomerSession.tsx b/react/components/LogoutCustomerSession.tsx index ea44413..240b3f8 100644 --- a/react/components/LogoutCustomerSession.tsx +++ b/react/components/LogoutCustomerSession.tsx @@ -1,7 +1,7 @@ import classnames from 'classnames' import React, { ReactNode, useCallback, useMemo } from 'react' import { useCssHandles } from 'vtex.css-handles' -import { Link } from 'vtex.render-runtime' +// import { Link } from 'vtex.render-runtime' import { IconAssistantSales, IconProfile } from 'vtex.store-icons' import { Button } from 'vtex.styleguide' @@ -117,12 +117,12 @@ const LogoutCustomerSession = (props: Props) => {
{client.phone}
-
- +
+ {/* - + */}