From 50f41e79e661f01f46c7eaa3a4558c311ab2f1cb Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Fri, 31 Dec 2021 06:23:52 -0500 Subject: [PATCH] Add tooltip on backdoored location name --- src/Locations/ui/GenericLocation.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Locations/ui/GenericLocation.tsx b/src/Locations/ui/GenericLocation.tsx index d91d03c68..1c927d0ed 100644 --- a/src/Locations/ui/GenericLocation.tsx +++ b/src/Locations/ui/GenericLocation.tsx @@ -29,6 +29,7 @@ import { GetServer } from "../../Server/AllServers"; import { CorruptableText } from "../../ui/React/CorruptableText"; import { use } from "../../ui/Context"; import { serverMetadata } from "../../Server/data/servers"; +import { Tooltip } from "@mui/material"; type IProps = { loc: Location; @@ -92,8 +93,11 @@ export function GenericLocation({ loc }: IProps): React.ReactElement { return ( <> - - {backdoorInstalled && !Settings.DisableTextEffects ? : loc.name} + + {backdoorInstalled && !Settings.DisableTextEffects ? ( + + + ) : loc.name} {locContent}