diff --git a/apps/storefront/src/components/B3HoverButton.tsx b/apps/storefront/src/components/B3HoverButton.tsx index afd75ee3..5fef44ee 100644 --- a/apps/storefront/src/components/B3HoverButton.tsx +++ b/apps/storefront/src/components/B3HoverButton.tsx @@ -1,5 +1,4 @@ import { - useContext, Dispatch, SetStateAction, useState, @@ -12,20 +11,10 @@ import { Snackbar, } from '@mui/material' -import GroupIcon from '@mui/icons-material/Group' - import type { OpenPageState, } from '@b3/hooks' -import { - useMobile, -} from '@/hooks' - -import { - GlobaledContext, -} from '@/shared/global' - import { B3LStorage, } from '@/utils' @@ -43,15 +32,6 @@ export const B3HoverButton = (props: B3HoverButtonProps) => { productQuoteEnabled, } = props - const { - state: { - isAgenting, - salesRepCompanyName, - }, - } = useContext(GlobaledContext) - - const [isMobile] = useMobile() - const [showFinishQuote, setShowFinishQuote] = useState(false) const b2bQuoteDraftList = B3LStorage.get('b2bQuoteDraftList') @@ -67,7 +47,6 @@ export const B3HoverButton = (props: B3HoverButtonProps) => { } = window.location if (href.includes('/checkout')) return <> - const style = 'backgroundColor:"#ED6C02";fontSize:18px;' return ( { height: '42px', }} onClick={() => { - // B3SStorage.set('nextPath', '/') setOpenPage({ isOpen: true, openUrl: '/quoteDraft', @@ -116,28 +94,6 @@ export const B3HoverButton = (props: B3HoverButtonProps) => { ) } - { - isAgenting && !isOpen && isMobile && ( - - ) - } - diff --git a/apps/storefront/src/components/B3MasquradeGobalTip.tsx b/apps/storefront/src/components/B3MasquradeGobalTip.tsx index 3ee30db7..5d2b162a 100644 --- a/apps/storefront/src/components/B3MasquradeGobalTip.tsx +++ b/apps/storefront/src/components/B3MasquradeGobalTip.tsx @@ -7,6 +7,7 @@ import { import { Box, + Button, } from '@mui/material' import type { @@ -99,7 +100,7 @@ export const B3MasquradeGobalTip = (props: B3MasquradeGobalTipProps) => { if (href.includes('/checkout') || !customerId) return <> - if (!isAgenting || (!isOpen && isMobile)) return <> + if (!isAgenting) return <> let sx = {} @@ -116,28 +117,70 @@ export const B3MasquradeGobalTip = (props: B3MasquradeGobalTipProps) => { } } return ( - - - { + <> + { + !isOpen && isMobile && ( + + + + + + ) + } + + { + + ((isOpen && isMobile) || !isMobile) && ( + + + { !isMobile && ( { ) } - { + { isMobile && ( { ) } - + + + + ) + } + + - ) }