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
Prev Previous commit
Next Next commit
wip: stories
  • Loading branch information
rodrimaia committed Apr 24, 2023
commit fba262c58a7ebc5bdb33db86831a5b51c93ef2e5
Original file line number Diff line number Diff line change
Expand Up @@ -121,21 +121,4 @@ const useStyles = makeStyles((theme) => ({
main: {
paddingTop: theme.spacing(5),
},
ctaButton: {
backgroundImage: `linear-gradient(90deg, ${theme.palette.secondary.main} 0%, ${theme.palette.secondary.dark} 100%)`,
width: theme.spacing(30),
marginBottom: theme.spacing(4),
},
formSectionRoot: {
alignItems: "center",
},
description: {
color: theme.palette.text.secondary,
lineHeight: "160%",
},
title: {
...theme.typography.h5,
fontWeight: 600,
marging: theme.spacing(1),
},
}))
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export default {
const licensesTest: GetLicensesResponse[] = [
{
id: 1,
uploaded_at: "1682346425",
expires_at: "1682346425",
uuid: "1",
claims: {
trial: false,
all_features: true,
Expand All @@ -19,12 +22,21 @@ const licensesTest: GetLicensesResponse[] = [
},
]

const defaultArgs = {
showConfetti: false,
isLoading: false,
userLimitActual: 1,
userLimitLimit: 10,
licenses: licensesTest,
}

export const Default = {
args: defaultArgs,
}

export const Empty = {
args: {
showConfetti: false,
isLoading: false,
userLimitActual: 1,
userLimitLimit: 10,
licenses: licensesTest,
...defaultArgs,
licenses: [],
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ const useStyles = makeStyles((theme) => ({
backgroundImage: `linear-gradient(90deg, ${theme.palette.secondary.main} 0%, ${theme.palette.secondary.dark} 100%)`,
width: theme.spacing(30),
marginBottom: theme.spacing(4),
},
removeButtom: {
color: "red",
marginTop: theme.spacing(4),
},
}))

Expand Down