From c4aea2e106840f09e1c9bb5a3dfddfbc347f921c Mon Sep 17 00:00:00 2001 From: powermaker450 Date: Wed, 11 Sep 2024 23:30:51 -0400 Subject: [PATCH] Add tooltip to settings icon --- src/components/EndpointDialong.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/EndpointDialong.tsx b/src/components/EndpointDialong.tsx index d05868a..6708d8d 100644 --- a/src/components/EndpointDialong.tsx +++ b/src/components/EndpointDialong.tsx @@ -8,6 +8,8 @@ import { FormControlLabel, IconButton, TextField, + Tooltip, + Zoom, } from "@mui/material"; import SettingsIcon from "@mui/icons-material/Settings"; import React, { useState } from "react"; @@ -58,11 +60,21 @@ const EndpointDialog = ({ endpoint, setEndpoint, secure, setSecure }: EndpointDi localStorage.setItem("apiEndpoint", JSON.stringify(endpoint)); } - return ( - <> + const settingsButton = ( + + + ); + + return ( + <> + {settingsButton}