Skip to content

Commit 21a610e

Browse files
committed
wip: stories
1 parent ee583e1 commit 21a610e

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

site/src/pages/DeploySettingsPage/LicensesSettingsPage/AddNewLicensePageView.stories.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ export default {
44
title: "pages/AddNewLicensePageView",
55
component: AddNewLicensePageView,
66
}
7+
8+
export const Default = {
9+
args: {
10+
isSavingLicense: false,
11+
didSavingFailed: false,
12+
},
13+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { GetLicensesResponse } from "api/api"
2+
import LicensesSettingsPageView from "./LicensesSettingsPageView"
3+
4+
export default {
5+
title: "pages/LicensesSettingsPage",
6+
component: LicensesSettingsPageView,
7+
}
8+
9+
const licensesTest: GetLicensesResponse[] = [
10+
{
11+
id: 1,
12+
claims: {
13+
trial: false,
14+
all_features: true,
15+
version: 1,
16+
features: {},
17+
license_expires: 1682346425,
18+
},
19+
},
20+
]
21+
22+
export const Default = {
23+
args: {
24+
showConfetti: false,
25+
isLoading: false,
26+
userLimitActual: 1,
27+
userLimitLimit: 10,
28+
licenses: licensesTest,
29+
},
30+
}

0 commit comments

Comments
 (0)