@@ -79,27 +79,45 @@ const LicensesSettingsPageView: FC<Props> = ({
79
79
) }
80
80
81
81
{ ! isLoading && licenses === null && (
82
- < Stack spacing = { 4 } justifyContent = "center" alignItems = "center" >
83
- < Button
84
- className = { styles . ctaButton }
85
- size = "large"
86
- component = { Link }
87
- to = "/settings/deployment/licenses/add"
88
- >
89
- Add license
90
- </ Button >
91
- </ Stack >
82
+ < div className = { styles . root } >
83
+ < Stack alignItems = "center" spacing = { 1 } >
84
+ < Stack alignItems = "center" spacing = { 0.5 } >
85
+ < span className = { styles . title } > No Licenses yet</ span >
86
+ < span className = { styles . description } >
87
+ < a href = "mailto:sales@coder.com" > Contact sales</ a > to learn
88
+ more.
89
+ </ span >
90
+ </ Stack >
91
+ </ Stack >
92
+ </ div >
92
93
) }
93
94
</ >
94
95
)
95
96
}
96
97
97
98
const useStyles = makeStyles ( ( theme ) => ( {
98
- ctaButton : {
99
- backgroundImage : `linear-gradient(90deg, ${ theme . palette . secondary . main } 0%, ${ theme . palette . secondary . dark } 100%)` ,
100
- width : theme . spacing ( 30 ) ,
101
- marginBottom : theme . spacing ( 4 ) ,
102
- marginTop : theme . spacing ( 4 ) ,
99
+ title : {
100
+ fontSize : theme . spacing ( 2 ) ,
101
+ } ,
102
+
103
+ root : {
104
+ minHeight : theme . spacing ( 30 ) ,
105
+ display : "flex" ,
106
+ alignItems : "center" ,
107
+ justifyContent : "center" ,
108
+ borderRadius : theme . shape . borderRadius ,
109
+ border : `1px solid ${ theme . palette . divider } ` ,
110
+ padding : theme . spacing ( 6 ) ,
111
+
112
+ "&:hover" : {
113
+ backgroundColor : theme . palette . background . paper ,
114
+ } ,
115
+ } ,
116
+
117
+ description : {
118
+ color : theme . palette . text . secondary ,
119
+ textAlign : "center" ,
120
+ maxWidth : theme . spacing ( 50 ) ,
103
121
} ,
104
122
} ) )
105
123
0 commit comments