From db8869602e4b960ac083ee76709050cff6983c3f Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 9 Feb 2021 14:42:06 +0100 Subject: [PATCH] plans --- packages/dashboard/package.json | 1 + packages/dashboard/src/components/Layout.js | 2 +- packages/dashboard/src/components/Table.js | 49 ++- .../api/{fixtures => stubs/user}/downloads.js | 0 .../{fixtures => stubs/user}/downloads.json | 0 .../api/{fixtures => stubs/user}/uploads.js | 0 .../api/{fixtures => stubs/user}/uploads.json | 0 packages/dashboard/src/pages/downloads.js | 3 +- packages/dashboard/src/pages/payments.js | 69 +++- packages/dashboard/src/pages/plans.js | 389 ++++++++++++++++++ packages/dashboard/src/pages/uploads.js | 3 +- 11 files changed, 477 insertions(+), 39 deletions(-) rename packages/dashboard/src/pages/api/{fixtures => stubs/user}/downloads.js (100%) rename packages/dashboard/src/pages/api/{fixtures => stubs/user}/downloads.json (100%) rename packages/dashboard/src/pages/api/{fixtures => stubs/user}/uploads.js (100%) rename packages/dashboard/src/pages/api/{fixtures => stubs/user}/uploads.json (100%) create mode 100644 packages/dashboard/src/pages/plans.js diff --git a/packages/dashboard/package.json b/packages/dashboard/package.json index 2ec5ebbb..fbe0939f 100644 --- a/packages/dashboard/package.json +++ b/packages/dashboard/package.json @@ -12,6 +12,7 @@ "@ory/kratos-client": "^0.5.4-alpha.1", "@tailwindcss/forms": "^0.2.1", "autoprefixer": "^10.2.4", + "classnames": "^2.2.6", "dayjs": "^1.10.4", "express-jwt": "^6.0.0", "formik": "^2.2.6", diff --git a/packages/dashboard/src/components/Layout.js b/packages/dashboard/src/components/Layout.js index 85f65837..5b8eb272 100644 --- a/packages/dashboard/src/components/Layout.js +++ b/packages/dashboard/src/components/Layout.js @@ -225,7 +225,7 @@ export default function Layout({ title, children }) { -