Skip to content

Commit 45bc00e

Browse files
committed
feat(admin-ui): little refactoring on licence details page #399
1 parent a8a40e1 commit 45bc00e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

admin-ui/app/routes/Apps/Gluu/styles/applicationstyle.js

+4
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ export default {
3434
borderRadius: 24,
3535
padding: 12,
3636
},
37+
licensePanel: {
38+
backgroundColor: '#F5F5F5',
39+
float: 'left',
40+
},
3741
}

admin-ui/app/routes/License/LicenseDetailsPage.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ function LicenseDetailsPage({ item, loading, dispatch }) {
2424
}, [])
2525

2626
function formatDate(date) {
27-
if (date == undefined) {
28-
return ''
27+
if (!date) {
28+
return '-'
2929
}
3030
if (date.length > 10) {
3131
return date.substring(0, 10)
3232
}
33-
return ''
33+
return '-'
3434
}
3535
SetTitle(t('fields.licenseDetails'))
3636
return (
3737
<GluuLoader blocking={loading}>
3838
<Card className="mb-3" style={applicationStyle.mainCard}>
3939
<CardBody>
4040
{item.licenseEnabled ? (
41-
<Container style={{ backgroundColor: '#F5F5F5', float: 'left' }}>
41+
<Container style={applicationStyle.licensePanel}>
4242
<Row>
4343
<Col sm={6}>
4444
<GluuFormDetailRow
@@ -102,7 +102,7 @@ function LicenseDetailsPage({ item, loading, dispatch }) {
102102
<Col sm={6}>
103103
<GluuFormDetailRow
104104
label="fields.customerName"
105-
value={item.customerFirstName + ' ' + item.customerLastName}
105+
value={`${item.customerFirstName} ${item.customerLastName}`}
106106
isBadge={true}
107107
lsize={3}
108108
rsize={9}

0 commit comments

Comments
 (0)