Skip to content

Commit f8de5ac

Browse files
committed
Add tooltip
1 parent 535a80a commit f8de5ac

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

site/src/pages/DeploySettingsPage/LicensesSettingsPage/LicensesSettingsPageView.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { Link } from "react-router-dom"
1313
import useWindowSize from "react-use/lib/useWindowSize"
1414
import MuiLink from "@mui/material/Link"
1515
import { displaySuccess } from "components/GlobalSnackbar/utils"
16+
import Tooltip from "@mui/material/Tooltip"
1617

1718
type Props = {
1819
showConfetti: boolean
@@ -67,18 +68,20 @@ const LicensesSettingsPageView: FC<Props> = ({
6768
>
6869
Add a license
6970
</Button>
70-
<Button
71-
onClick={() => {
72-
if (refreshEntitlements) {
73-
if (refreshEntitlements()) {
74-
displaySuccess("Successfully refreshed licenses")
71+
<Tooltip title="Refresh license entitlements. This is done automatically every 10 minutes.">
72+
<Button
73+
onClick={() => {
74+
if (refreshEntitlements) {
75+
if (refreshEntitlements()) {
76+
displaySuccess("Successfully refreshed licenses")
77+
}
7578
}
76-
}
77-
}}
78-
startIcon={<RefreshIcon />}
79-
>
80-
Refresh
81-
</Button>
79+
}}
80+
startIcon={<RefreshIcon />}
81+
>
82+
Refresh
83+
</Button>
84+
</Tooltip>
8285
</Stack>
8386
</Stack>
8487

0 commit comments

Comments
 (0)