diff --git a/frontend/package.json b/frontend/package.json index 4366dd42ec..bf07adf2c4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -29,6 +29,7 @@ "start": "vite", "start:heroku": "UNLEASH_API=https://unleash.herokuapp.com yarn run start", "start:enterprise": "UNLEASH_API=https://unleash4.herokuapp.com yarn run start", + "start:demo": "UNLEASH_BASE_PATH=/demo/ yarn start", "test": "vitest", "prepare": "yarn run build", "fmt": "prettier src --write --loglevel warn", diff --git a/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformationButton/BillingInformationButton.tsx b/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformationButton/BillingInformationButton.tsx index 8a3012a53a..dd70f6a04d 100644 --- a/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformationButton/BillingInformationButton.tsx +++ b/frontend/src/component/admin/billing/BillingDashboard/BillingInformation/BillingInformationButton/BillingInformationButton.tsx @@ -1,20 +1,8 @@ import { Button, styled } from '@mui/material'; import { VFC } from 'react'; +import { formatApiPath } from 'utils/formatPath'; -const href = `mailto:elise@getunleash.ai?subject=Continue with Unleash&body=Hi Unleash,%0D%0A%0D%0A -I would like to continue with Unleash.%0D%0A%0D%0A%0D%0A%0D%0A - -Billing information:%0D%0A%0D%0A - -1. Company name (legal name): [add your information here]%0D%0A%0D%0A -2. Email address (where we will send the invoice): [add your information here]%0D%0A%0D%0A -3. Address: [add your information here]%0D%0A%0D%0A -4. Country: [add your information here]%0D%0A%0D%0A -5. VAT ID (optional - only European countries): [add your information here]%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A - - - --- Thank you for signing up. We will upgrade your trial as quick as possible and we will grant you access to the application again. --`; +const PORTAL_URL = formatApiPath('api/admin/invoices'); const StyledButton = styled(Button)(({ theme }) => ({ width: '100%', @@ -27,10 +15,11 @@ interface IBillingInformationButtonProps { export const BillingInformationButton: VFC = ({ update, -}) => { - return ( - - {update ? 'Update billing information' : 'Add billing information'} - - ); -}; +}) => ( + + {update ? 'Update billing information' : 'Add billing information'} + +);