Skip to content

chore: minor tweaks to license ui #7314

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 3 commits into from
Apr 28, 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
Next Next commit
chore: minor tweaks to license ui
  • Loading branch information
rodrimaia committed Apr 27, 2023
commit 9a80c06f840c6bb05b3996df11f16f3265d85d66
8 changes: 5 additions & 3 deletions site/src/components/LicenseCard/LicenseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,21 @@ export const LicenseCard = ({
alignItems="self-end"
>
<div className={styles.userLimit}>
<span className={styles.userLimitActual}>{userLimitActual}</span>
<span className={styles.userLimitActual}>
{userLimitActual} users
</span>
<span className={styles.userLimitLimit}>
/ {userLimitLimit || "Unlimited"} users
/ {userLimitLimit || "Unlimited"}
</span>
</div>

<Stack direction="column" spacing={0} alignItems="center">
<span className={styles.expirationDateLabel}>Valid until</span>
<span className={styles.expirationDate}>
{dayjs
.unix(license.claims.license_expires)
.format("MMMM D, YYYY")}
</span>
<span className={styles.expirationDateLabel}>Valid until</span>
</Stack>
<div className={styles.actions}>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const LicensesSettingsPageView: FC<Props> = ({
component={Link}
to="/settings/deployment/licenses/add"
>
Add new License
Add new license
</Button>
</Stack>

Expand Down