From 87cb5f0c67d5f77d9de284198989b66d137a64f7 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Tue, 28 Nov 2023 11:43:03 +0000 Subject: [PATCH] Add a billing page (manually inserted to db) to help with early enterprise customers --- api.js | 3 ++ components/MenuLinks.js | 6 +++ controllers/account.js | 26 ++++++++++ pages/billing.js | 111 ++++++++++++++++++++++++++++++++++++++++ router.js | 18 +++++++ 5 files changed, 164 insertions(+) create mode 100644 pages/billing.js diff --git a/api.js b/api.js index 29a643d..a759e69 100644 --- a/api.js +++ b/api.js @@ -4,6 +4,9 @@ import NProgress from 'nprogress'; export async function getAccount(dispatch, errorCallback, router) { return ApiCall('/account.json', 'GET', null, dispatch, errorCallback, router); } +export async function getBilling(dispatch, errorCallback, router) { + return ApiCall('/billing.json', 'GET', null, dispatch, errorCallback, router); +} export async function updateOnboarding(body, dispatch, errorCallback, router) { return ApiCall('/forms/onboarding', 'POST', body, dispatch, errorCallback, router); } diff --git a/components/MenuLinks.js b/components/MenuLinks.js index 0723340..3961111 100644 --- a/components/MenuLinks.js +++ b/components/MenuLinks.js @@ -165,6 +165,12 @@ export default withRouter(function MenuLinks({ router }) {