File tree 2 files changed +7
-2
lines changed
pages/DeploymentSettingsPage/PremiumPage 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,16 @@ export const ThemeProvider: FC<PropsWithChildren> = ({ children }) => {
60
60
61
61
useEffect ( ( ) => {
62
62
const root = document . documentElement ;
63
- root . classList . remove ( "light" , "dark" ) ;
63
+
64
64
if ( themePreference === "auto" ) {
65
65
root . classList . add ( preferredColorScheme ) ;
66
66
} else {
67
67
root . classList . add ( themePreference ) ;
68
68
}
69
+
70
+ return ( ) => {
71
+ root . classList . remove ( "light" , "dark" ) ;
72
+ } ;
69
73
} , [ themePreference , preferredColorScheme ] ) ;
70
74
71
75
const theme =
@@ -79,6 +83,7 @@ export const ThemeProvider: FC<PropsWithChildren> = ({ children }) => {
79
83
) ;
80
84
} ;
81
85
86
+ // This is being added to allow Tailwind and MUI to work together.
82
87
const cache = createCache ( {
83
88
key : "css" ,
84
89
prepend : true ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const EnterpriseVersion: FC = () => {
18
18
< p className = "text-sm max-w-xl mt-2 text-content-secondary font-medium" >
19
19
As an Enterprise license holder, you already benefit from Coder’s
20
20
features for secure, large-scale deployments. Upgrade to Coder
21
- Premium for enhanced multi-tenant control and flexibility:
21
+ Premium for enhanced multi-tenant control and flexibility.
22
22
</ p >
23
23
</ div >
24
24
< Button asChild >
You can’t perform that action at this time.
0 commit comments