Skip to content

Commit 18e57f4

Browse files
committed
Use mui tooltips
1 parent 92fa8c6 commit 18e57f4

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

packages/jupyter-ai/src/components/chat-settings.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
Radio,
1313
RadioGroup,
1414
TextField,
15+
Tooltip,
1516
CircularProgress
1617
} from '@mui/material';
1718
import SettingsIcon from '@mui/icons-material/Settings';
@@ -530,23 +531,26 @@ function CompleterSettingsButton(props: {
530531
}): JSX.Element {
531532
if (props.selection && !props.isCompleterEnabled) {
532533
return (
533-
<IconButton
534+
<Tooltip
534535
title={
535536
'A completer model is selected, but ' +
536537
(props.provider === null
537538
? 'the completion provider plugin is not available.'
538539
: 'the inline completion provider is not enabled in the settings: click to open settings.')
539540
}
540-
onClick={props.openSettings}
541541
>
542-
<WarningAmberIcon />
543-
</IconButton>
542+
<IconButton onClick={props.openSettings}>
543+
<WarningAmberIcon />
544+
</IconButton>
545+
</Tooltip>
544546
);
545547
}
546548
return (
547-
<IconButton onClick={props.openSettings} title="Completer settings">
548-
<SettingsIcon />
549-
</IconButton>
549+
<Tooltip title="Completer settings">
550+
<IconButton onClick={props.openSettings}>
551+
<SettingsIcon />
552+
</IconButton>
553+
</Tooltip>
550554
);
551555
}
552556

0 commit comments

Comments
 (0)