File tree 6 files changed +34
-9
lines changed
pages/WorkspacesPage/filter
6 files changed +34
-9
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const SidebarNavItem: FC<
31
31
position : absolute;
32
32
left : 0 ;
33
33
top : 0 ;
34
- background-color : ${ theme . palette . secondary . dark } ;
34
+ background-color : ${ theme . palette . primary . main } ;
35
35
border-top-left-radius : 8px ;
36
36
border-bottom-left-radius : 8px ;
37
37
}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ const SidebarNavItem: FC<
55
55
position : absolute;
56
56
left : 0 ;
57
57
top : 0 ;
58
- background-color : ${ theme . palette . secondary . dark } ;
58
+ background-color : ${ theme . palette . primary . main } ;
59
59
border-top-left-radius : 8px ;
60
60
border-bottom-left-radius : 8px ;
61
61
}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export const TabLink = (props: NavLinkProps) => {
51
51
bottom : 0 ;
52
52
height : 2px ;
53
53
width : 100% ;
54
- background : ${ theme . palette . secondary . dark } ;
54
+ background : ${ theme . palette . primary . main } ;
55
55
position : absolute;
56
56
}
57
57
` ;
Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ import { USERS_LINK } from "components/Dashboard/Navbar/NavbarView";
6
6
import { PageHeader , PageHeaderTitle } from "components/PageHeader/PageHeader" ;
7
7
import { useFeatureVisibility } from "hooks/useFeatureVisibility" ;
8
8
import { usePermissions } from "hooks/usePermissions" ;
9
- import { FC } from "react" ;
9
+ import { FC , Suspense } from "react" ;
10
10
import { Link as RouterLink , Outlet , useNavigate } from "react-router-dom" ;
11
11
import { Margins } from "components/Margins/Margins" ;
12
12
import { TabLink , Tabs } from "components/Tabs/Tabs" ;
13
+ import { Loader } from "components/Loader/Loader" ;
13
14
14
15
export const UsersLayout : FC = ( ) => {
15
16
const { createUser : canCreateUser , createGroup : canCreateGroup } =
@@ -51,7 +52,9 @@ export const UsersLayout: FC = () => {
51
52
</ Tabs >
52
53
53
54
< Margins >
54
- < Outlet />
55
+ < Suspense fallback = { < Loader /> } >
56
+ < Outlet />
57
+ </ Suspense >
55
58
</ Margins >
56
59
</ >
57
60
) ;
Original file line number Diff line number Diff line change @@ -189,14 +189,19 @@ const StatusOptionItem = ({
189
189
} ;
190
190
191
191
const StatusIndicator : FC < { option : StatusOption } > = ( { option } ) => {
192
+ const color = option . color === "notice" ? "warning" : option . color ;
193
+
192
194
return (
193
195
< Box
194
196
height = { 8 }
195
197
width = { 8 }
196
198
borderRadius = { 9999 }
197
- sx = { {
198
- backgroundColor : ( theme ) =>
199
- ( theme . palette [ option . color as keyof Palette ] as PaletteColor ) . light ,
199
+ css = { ( theme ) => {
200
+ return {
201
+ backgroundColor : (
202
+ theme . palette [ color as keyof Palette ] as PaletteColor
203
+ ) . light ,
204
+ } ;
200
205
} }
201
206
/>
202
207
) ;
Original file line number Diff line number Diff line change 7
7
BUTTON_MD_HEIGHT ,
8
8
BUTTON_SM_HEIGHT ,
9
9
} from "./constants" ;
10
+ // eslint-disable-next-line no-restricted-imports -- We need MUI here
11
+ import { alertClasses } from "@mui/material/Alert" ;
10
12
11
13
export type PaletteIndex =
12
14
| "primary"
@@ -41,7 +43,7 @@ export let dark = createTheme({
41
43
} ,
42
44
text : {
43
45
primary : colors . gray [ 1 ] ,
44
- secondary : colors . gray [ 4 ] ,
46
+ secondary : colors . gray [ 6 ] ,
45
47
disabled : colors . gray [ 9 ] ,
46
48
} ,
47
49
divider : colors . gray [ 13 ] ,
@@ -514,6 +516,21 @@ dark = createTheme(dark, {
514
516
message : ( { theme } ) => ( {
515
517
color : theme . palette . text . primary ,
516
518
} ) ,
519
+ outlinedWarning : {
520
+ [ `& .${ alertClasses . icon } ` ] : {
521
+ color : dark . palette . warning . light ,
522
+ } ,
523
+ } ,
524
+ outlinedInfo : {
525
+ [ `& .${ alertClasses . icon } ` ] : {
526
+ color : dark . palette . primary . light ,
527
+ } ,
528
+ } ,
529
+ outlinedError : {
530
+ [ `& .${ alertClasses . icon } ` ] : {
531
+ color : dark . palette . error . light ,
532
+ } ,
533
+ } ,
517
534
} ,
518
535
} ,
519
536
MuiAlertTitle : {
You can’t perform that action at this time.
0 commit comments