diff --git a/components/account-menu.tsx b/components/account-menu.tsx index 2a9c07b5..1f0b3167 100644 --- a/components/account-menu.tsx +++ b/components/account-menu.tsx @@ -93,6 +93,19 @@ const AccountMenu: FunctionComponent = function () { )} + +
  • + + Support + +
  • )} diff --git a/components/plans.tsx b/components/plans.tsx index e774fa04..de331ab2 100644 --- a/components/plans.tsx +++ b/components/plans.tsx @@ -32,7 +32,7 @@ const faq: AccordionData = [ title: 'What is the difference between "Email support" and "Enterprise support"?', content: - "Email support is a standard support service provided to all users. You can contact us at any time by email and we will help you with your questions without a guaranteed response time. Enterprise support is a premium support service provided to Enterprise plan users with a guaranteed response time. For more information, please refer to the terms of service." + "Email support is a standard support service provided to all our paid customers. You can contact us at any time by email and we will help you with your questions without a guaranteed response time. The usual response time is of one business day. Enterprise support is a premium support service provided to Enterprise plan users with a guaranteed response time. Specific SLA can be negotiated. For more information, please refer to the terms of service." }, { title: diff --git a/pages/account/subscription.tsx b/pages/account/subscription.tsx index 49ee8b6c..5b166d40 100644 --- a/pages/account/subscription.tsx +++ b/pages/account/subscription.tsx @@ -463,55 +463,6 @@ const AccountSubscription: FunctionComponent = function () { )} )} - - {!isUserLoading && - (userData?.plan === 'SOLO' || - userData?.plan === 'TEAM') && ( -
    -
    -

    Email support

    -
    -
    -
    -
    -

    - Contact us at{' '} - - email-support@mockoon.com - -

    - - Usual response time is between 24 and 48 hours - -
    -
    -
    -
    - )} - - {!isUserLoading && userData?.plan === 'ENTERPRISE' && ( -
    -
    -

    Priority support

    -
    -
    -
    -
    -

    - Contact us at{' '} - - priority-support@mockoon.com - -

    - - Guaranteed response time of one business day (9 am - to 5 pm CET/CEST, Monday to Friday). - -
    -
    -
    -
    - )} diff --git a/pages/account/support.tsx b/pages/account/support.tsx new file mode 100644 index 00000000..c9b48ea6 --- /dev/null +++ b/pages/account/support.tsx @@ -0,0 +1,116 @@ +import { useRouter } from 'next/router'; +import { FunctionComponent, useEffect } from 'react'; +import AccountHeader from '../../components/account-header'; +import AccountMenu from '../../components/account-menu'; +import LoadingPage from '../../components/loading-page'; +import Meta from '../../components/meta'; +import PaddleScript from '../../components/paddle'; +import Layout from '../../layout/layout'; +import { useAuth } from '../../utils/auth'; +import { useCurrentUser } from '../../utils/queries'; + +const meta = { + title: 'My account - Priority support', + description: 'Get priority support with your Mockoon Cloud plan' +}; + +const AccountSubscription: FunctionComponent = function () { + const { isAuth, user, isLoading: isAuthLoading } = useAuth(); + const router = useRouter(); + const { isLoading: isUserLoading, data: userData } = useCurrentUser(); + + useEffect(() => { + if (!isAuthLoading) { + if (!user) { + router.push('/login/'); + } else if (user && !isAuth) { + router.push('/email-verification/'); + } + } + }, [isAuthLoading, user, isAuth]); + + return ( + + + + {isAuthLoading && } + + {!isAuthLoading && isAuth && ( + <> + + + +
    +
    +
    +
    + +
    +
    + {!isUserLoading && + (userData?.plan === 'SOLO' || + userData?.plan === 'TEAM') && ( +
    +
    +

    Email support

    + + You benefit from priority email support with your + plan + +
    +
    +
    +
    +

    + Contact us at{' '} + + email-support@mockoon.com + +

    + + Usual response time: one business day + +
    +
    +
    +
    + )} + + {!isUserLoading && userData?.plan === 'ENTERPRISE' && ( +
    +
    +

    Priority support

    + + You benefit from priority enterprise support with your + plan + +
    +
    +
    +
    +

    + Contact us at{' '} + + priority-support@mockoon.com + +

    + + Guaranteed response time of one business day (9 am + to 5 pm CET/CEST, Monday to Friday). + +
    +
    +
    +
    + )} +
    +
    +
    +
    + + )} +
    + ); +}; + +export default AccountSubscription; diff --git a/pages/contact.tsx b/pages/contact.tsx index d451b918..7edc89f5 100644 --- a/pages/contact.tsx +++ b/pages/contact.tsx @@ -32,8 +32,7 @@ const Contact: FunctionComponent = function () {

    Community support

    You can ask for help or discuss ideas and improvements on - our GitHub Discussion forum. You are also welcome on our - Discord server. + our GitHub Discussion forum.

    - GitHub - -  |  - - Discord + Go to the forum
    @@ -102,7 +93,7 @@ const Contact: FunctionComponent = function () { help you with any issue you may have with the product.

    - Get email support + Get email support
    @@ -128,7 +119,7 @@ const Contact: FunctionComponent = function () { may have with the product.

    - Get priority support + Get priority support