Add tooltip to settings icon
This commit is contained in:
parent
6fe9fbb3cb
commit
c4aea2e106
|
@ -8,6 +8,8 @@ import {
|
||||||
FormControlLabel,
|
FormControlLabel,
|
||||||
IconButton,
|
IconButton,
|
||||||
TextField,
|
TextField,
|
||||||
|
Tooltip,
|
||||||
|
Zoom,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import SettingsIcon from "@mui/icons-material/Settings";
|
import SettingsIcon from "@mui/icons-material/Settings";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
|
@ -58,11 +60,21 @@ const EndpointDialog = ({ endpoint, setEndpoint, secure, setSecure }: EndpointDi
|
||||||
localStorage.setItem("apiEndpoint", JSON.stringify(endpoint));
|
localStorage.setItem("apiEndpoint", JSON.stringify(endpoint));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
const settingsButton = (
|
||||||
<>
|
<Tooltip
|
||||||
|
title="Settings"
|
||||||
|
placement="top"
|
||||||
|
TransitionComponent={Zoom}
|
||||||
|
>
|
||||||
<IconButton aria-label="settings" onClick={openSettings}>
|
<IconButton aria-label="settings" onClick={openSettings}>
|
||||||
<SettingsIcon />
|
<SettingsIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{settingsButton}
|
||||||
|
|
||||||
<Dialog
|
<Dialog
|
||||||
open={open}
|
open={open}
|
||||||
|
|
Loading…
Reference in a new issue