@@ -41,40 +41,39 @@ export const PluginTitle = ({
4141 return (
4242 < div data-testid = "global-writes-tab-title" className = { containerStyles } >
4343 Global Writes{ ' ' }
44- { showError ||
45- ( showWarning && (
46- < Tooltip
47- data-testid = "collection-stats-tooltip"
48- align = "bottom"
49- justify = "middle"
50- trigger = {
51- // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
52- < span
53- onClick = { ( ) => {
54- // LG does not bubble up the click event to the parent component,
55- // so we add noop onClick and let it bubble up.
56- } }
57- >
58- < Icon
59- glyph = { showWarning ? 'Warning' : 'ImportantWithCircle' }
60- aria-label = "warning"
61- className = { cx (
62- warningIconStyles ,
63- iconStylesLight ,
64- darkMode && iconStylesDark
65- ) }
66- />
67- </ span >
68- }
69- >
70- < Body >
71- Collections in Atlas Global Clusters with Atlas-managed sharding
72- must be configured with a compound shard key made up of both a
73- 'location' field and an identifier field that you
74- provide. Please configure sharding here.
75- </ Body >
76- </ Tooltip >
77- ) ) }
44+ { ( showError || showWarning ) && (
45+ < Tooltip
46+ data-testid = "collection-stats-tooltip"
47+ align = "bottom"
48+ justify = "middle"
49+ trigger = {
50+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
51+ < span
52+ onClick = { ( ) => {
53+ // LG does not bubble up the click event to the parent component,
54+ // so we add noop onClick and let it bubble up.
55+ } }
56+ >
57+ < Icon
58+ glyph = { showWarning ? 'Warning' : 'ImportantWithCircle' }
59+ aria-label = "warning"
60+ className = { cx (
61+ warningIconStyles ,
62+ iconStylesLight ,
63+ darkMode && iconStylesDark
64+ ) }
65+ />
66+ </ span >
67+ }
68+ >
69+ < Body >
70+ Collections in Atlas Global Clusters with Atlas-managed sharding
71+ must be configured with a compound shard key made up of both a
72+ 'location' field and an identifier field that you provide.
73+ Please configure sharding here.
74+ </ Body >
75+ </ Tooltip >
76+ ) }
7877 </ div >
7978 ) ;
8079} ;
0 commit comments