Skip to content

Commit fba262c

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

File tree

3 files changed

+18
-25
lines changed

3 files changed

+18
-25
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,4 @@ const useStyles = makeStyles((theme) => ({
121121
main: {
122122
paddingTop: theme.spacing(5),
123123
},
124-
ctaButton: {
125-
backgroundImage: `linear-gradient(90deg, ${theme.palette.secondary.main} 0%, ${theme.palette.secondary.dark} 100%)`,
126-
width: theme.spacing(30),
127-
marginBottom: theme.spacing(4),
128-
},
129-
formSectionRoot: {
130-
alignItems: "center",
131-
},
132-
description: {
133-
color: theme.palette.text.secondary,
134-
lineHeight: "160%",
135-
},
136-
title: {
137-
...theme.typography.h5,
138-
fontWeight: 600,
139-
marging: theme.spacing(1),
140-
},
141124
}))

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

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export default {
99
const licensesTest: GetLicensesResponse[] = [
1010
{
1111
id: 1,
12+
uploaded_at: "1682346425",
13+
expires_at: "1682346425",
14+
uuid: "1",
1215
claims: {
1316
trial: false,
1417
all_features: true,
@@ -19,12 +22,21 @@ const licensesTest: GetLicensesResponse[] = [
1922
},
2023
]
2124

25+
const defaultArgs = {
26+
showConfetti: false,
27+
isLoading: false,
28+
userLimitActual: 1,
29+
userLimitLimit: 10,
30+
licenses: licensesTest,
31+
}
32+
2233
export const Default = {
34+
args: defaultArgs,
35+
}
36+
37+
export const Empty = {
2338
args: {
24-
showConfetti: false,
25-
isLoading: false,
26-
userLimitActual: 1,
27-
userLimitLimit: 10,
28-
licenses: licensesTest,
39+
...defaultArgs,
40+
licenses: [],
2941
},
3042
}

site/src/pages/DeploySettingsPage/LicensesSettingsPage/LicensesSettingsPageView.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ const useStyles = makeStyles((theme) => ({
9393
backgroundImage: `linear-gradient(90deg, ${theme.palette.secondary.main} 0%, ${theme.palette.secondary.dark} 100%)`,
9494
width: theme.spacing(30),
9595
marginBottom: theme.spacing(4),
96-
},
97-
removeButtom: {
98-
color: "red",
96+
marginTop: theme.spacing(4),
9997
},
10098
}))
10199

0 commit comments

Comments
 (0)