diff --git a/components/common/SubText.tsx b/components/common/SubText.tsx new file mode 100644 index 000000000..93b6f1d23 --- /dev/null +++ b/components/common/SubText.tsx @@ -0,0 +1,24 @@ +import { Box } from "@chakra-ui/react"; +import { useMyTheme } from "lib/useMyTheme"; + +interface Props { + children: React.ReactNode; +} + +const SubText: React.FC = ({ children }) => { + const { themeColorShade } = useMyTheme(); + return ( + + {children} + + ); +}; + +export default SubText; diff --git a/components/plans/StageSelector.tsx b/components/plans/StageSelector.tsx index 126ad7438..bebeec856 100644 --- a/components/plans/StageSelector.tsx +++ b/components/plans/StageSelector.tsx @@ -1,5 +1,6 @@ import { Box, + Flex, HStack, Image, Radio, @@ -9,6 +10,7 @@ import { import { Trans } from "@lingui/macro"; import { useLingui } from "@lingui/react"; import ModeImage from "components/common/ModeImage"; +import SubText from "components/common/SubText"; // @ts-ignore import salmonRunHighTide from "lib/assets/SalmonRunHighTide.svg"; // @ts-ignore @@ -46,45 +48,75 @@ const StageSelector: React.FC = ({ {currentBackground.tide ? ( <> - changeTide("low")} - /> - changeTide("mid")} - /> - changeTide("high")} - /> + + changeTide("low")} + /> + {currentBackground.tide === "low" ? ( + + Low + + ) : ( + + )} + + + changeTide("mid")} + /> + {currentBackground.tide === "mid" ? ( + + Mid + + ) : ( + + )} + + + changeTide("high")} + /> + {currentBackground.tide === "high" ? ( + + High + + ) : ( + + )} + ) : ( diff --git a/components/u/AvatarWithInfo.tsx b/components/u/AvatarWithInfo.tsx index 6787ffd7d..13d111352 100644 --- a/components/u/AvatarWithInfo.tsx +++ b/components/u/AvatarWithInfo.tsx @@ -10,6 +10,7 @@ import { t, Trans } from "@lingui/macro"; import { LeagueType, RankedMode } from "@prisma/client"; import ModeImage from "components/common/ModeImage"; import MyLink from "components/common/MyLink"; +import SubText from "components/common/SubText"; import UserAvatar from "components/common/UserAvatar"; import WeaponImage from "components/common/WeaponImage"; import { getEmojiFlag } from "countries-list"; @@ -169,16 +170,7 @@ const AvatarWithInfo: React.FC = ({ - - {type} - + {type} {peakLeaguePowers[type]}