@@ -48,9 +48,9 @@ function Course() {
4848 . then ( data => {
4949 setEnrollmentsCount ( [
5050 { label : localeMessages [ "unverified" ] , value : data . enrollments_count . unverified , color : theme . palette . indigo [ 200 ] } ,
51- { label : localeMessages [ "active" ] , value : data . enrollments_count . active , color : theme . palette . secondary . main } ,
51+ { label : localeMessages [ "active" ] , value : data . enrollments_count . active , color : theme . palette . primary . main } ,
5252 { label : localeMessages [ "deactivated" ] , value : data . enrollments_count . deactivated , color : theme . palette . grey [ 300 ] } ,
53- { label : localeMessages [ "completed" ] , value : data . enrollments_count . completed , color : theme . palette . primary . main } ,
53+ { label : localeMessages [ "completed" ] , value : data . enrollments_count . completed , color : theme . palette . secondary . main } ,
5454 ] ) ;
5555 } )
5656 . catch ( error => console . error ( 'Error fetching course data:' , error ) ) ;
@@ -201,7 +201,7 @@ function Course() {
201201 showOrganizationSwitcher = { false }
202202 >
203203 < Grid size = { { xs : 12 } } py = { 2 } pl = { 2 } >
204- < Box p = { 2 } sx = { { border : '1px solid' , borderColor : 'grey.300 ' , borderRadius : 1 , minHeight : 300 } } >
204+ < Box p = { 2 } sx = { { border : '1px solid' , borderColor : 'border.main ' , backgroundColor : 'background.box' , borderRadius : 2 , minHeight : 300 } } >
205205 { userRole !== 'viewer' && < > < Button variant = "contained" startIcon = { < DescriptionIcon sx = { { marginLeft : direction == 'rtl' ? 1 : 0 } } /> } sx = { { marginBottom : 2 } } onClick = { ( ) => {
206206 setDialogContent ( < Suspense fallback = { < Box sx = { { p : 2 } } > < LinearProgress /> </ Box > } > < LessonForm
207207 header = { localeMessages [ "new_lesson" ] }
@@ -219,7 +219,7 @@ function Course() {
219219 </ Box >
220220 < Grid container spacing = { 2 } >
221221 { enrollmentsCount && < Grid size = { { xs : 12 , lg : 6 } } mt = { 2 } mb = { 2 } >
222- < Box py = { 2 } sx = { { border : '1px solid' , borderColor : 'grey.300 ' , borderRadius : 1 , backgroundColor : 'background.main ' , height : '100%' } } >
222+ < Box py = { 2 } sx = { { border : '1px solid' , borderColor : 'border.main ' , borderRadius : 2 , backgroundColor : 'background.box ' , height : '100%' } } >
223223 < Typography variant = "h6" align = 'center' > { localeMessages [ "enrollments_distribution" ] } </ Typography >
224224 < PieChart
225225 height = { 300 }
@@ -249,14 +249,14 @@ function Course() {
249249 </ Box >
250250 </ Grid > }
251251 { weeklyStats && < Grid size = { { xs : 12 , lg : 6 } } mt = { 2 } mb = { 2 } >
252- < Box py = { 2 } sx = { { border : '1px solid' , borderColor : 'grey.300 ' , borderRadius : 1 , backgroundColor : 'background.main ' , height : '100%' } } >
252+ < Box py = { 2 } sx = { { border : '1px solid' , borderColor : 'border.main ' , borderRadius : 2 , backgroundColor : 'background.box ' , height : '100%' } } >
253253 < Typography variant = "h6" align = 'center' > { localeMessages [ "weekly_enrollments" ] } </ Typography >
254254 < BarChart
255255 margin = { {
256256 top : 60 ,
257257 } }
258258 xAxis = { [ { data : weeklyStats . map ( ( stat ) => stat . date ) } ] }
259- series = { [ { data : weeklyStats . map ( ( stat ) => stat . count ) , color : theme . palette . primary . main } ] }
259+ series = { [ { data : weeklyStats . map ( ( stat ) => stat . count ) , color : theme . palette . secondary . main } ] }
260260 height = { 300 }
261261 />
262262 </ Box >
0 commit comments