Skip to content

feat: add license settings UI #7210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip: stories
  • Loading branch information
rodrimaia committed Apr 24, 2023
commit 21a610e45a9599f716c38bacd76fdfe7f5dc8dff
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ export default {
title: "pages/AddNewLicensePageView",
component: AddNewLicensePageView,
}

export const Default = {
args: {
isSavingLicense: false,
didSavingFailed: false,
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { GetLicensesResponse } from "api/api"
import LicensesSettingsPageView from "./LicensesSettingsPageView"

export default {
title: "pages/LicensesSettingsPage",
component: LicensesSettingsPageView,
}

const licensesTest: GetLicensesResponse[] = [
{
id: 1,
claims: {
trial: false,
all_features: true,
version: 1,
features: {},
license_expires: 1682346425,
},
},
]

export const Default = {
args: {
showConfetti: false,
isLoading: false,
userLimitActual: 1,
userLimitLimit: 10,
licenses: licensesTest,
},
}