File tree 2 files changed +8
-0
lines changed
xp-archive/client/contentTree/contentTreeEntry 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ .foggy {
2
+ color : var (--a-gray-500 );
3
+ background-color : var (--a-grayalpha-50 );
4
+ }
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { ContentTreeEntryData } from '../../../shared/types';
3
3
import { useAppState } from '../../context/appState/useAppState' ;
4
4
import { TreeItem } from '@mui/x-tree-view' ;
5
5
import { useContentTree } from 'client/hooks/useContentTree' ;
6
+ import style from './NavigationItem.module.css' ;
6
7
7
8
type Props = {
8
9
entry : ContentTreeEntryData ;
@@ -19,8 +20,11 @@ export const NavigationItem = ({ entry }: Props) => {
19
20
</ span >
20
21
) ;
21
22
23
+ const entryLocalized = entry . isLocalized || entry . hasLocalizedDescendants ;
24
+
22
25
return (
23
26
< TreeItem
27
+ className = { entryLocalized ? '' : style . foggy }
24
28
itemId = { entry . id }
25
29
label = { label }
26
30
onClick = { ( ) => {
You can’t perform that action at this time.
0 commit comments