diff --git a/src/ui/React/WorldMap.tsx b/src/ui/React/WorldMap.tsx index 64e0afd29..62474f7e7 100644 --- a/src/ui/React/WorldMap.tsx +++ b/src/ui/React/WorldMap.tsx @@ -2,6 +2,9 @@ import React from "react"; import { CityName } from "../../Locations/data/CityNames"; import Typography from "@mui/material/Typography"; import Tooltip from "@mui/material/Tooltip"; +import { Theme } from "@mui/material/styles"; +import makeStyles from "@mui/styles/makeStyles"; +import createStyles from "@mui/styles/createStyles"; interface ICityProps { currentCity: CityName; @@ -9,13 +12,25 @@ interface ICityProps { onTravel: (city: CityName) => void; } +const useStyles = makeStyles((theme: Theme) => + createStyles({ + travel: { + color: theme.colors.white, + lineHeight: "1em", + whiteSpace: "pre", + cursor: "pointer" + }, + }) +); + function City(props: ICityProps): React.ReactElement { + const classes = useStyles(); if (props.city !== props.currentCity) { return ( {props.city}}> props.onTravel(props.city)} - style={{ color: "white", lineHeight: "1em", whiteSpace: "pre", cursor: "pointer" }} + className={classes.travel} > {props.city[0]}