Tooltip explaining the player's name setting

This commit is contained in:
DrMint 2023-05-02 23:57:38 +02:00
parent b9c7c0828a
commit bf6bf2e8a8
3 changed files with 9 additions and 2 deletions

View File

@ -221,9 +221,14 @@ export const SettingsPopup = (): JSX.Element => {
</div> </div>
<div> <div>
<div className="flex place-content-center place-items-center gap-1">
<h3 className="text-xl">{format("player_name")}</h3> <h3 className="text-xl">{format("player_name")}</h3>
<ToolTip content={format("player_name_tooltip")} placement="top">
<Ico icon="info" />
</ToolTip>
</div>
<TextInput <TextInput
placeholder="<player>" placeholder="(player)"
className="w-48" className="w-48"
value={playerName} value={playerName}
onChange={(newName) => { onChange={(newName) => {

View File

@ -183,4 +183,5 @@ export interface ICUParams {
weapons_description: never; weapons_description: never;
level_x: { x: Date | boolean | number | string }; level_x: { x: Date | boolean | number | string };
story_x: { x: Date | boolean | number | string }; story_x: { x: Date | boolean | number | string };
player_name_tooltip: never;
} }

View File

@ -190,6 +190,7 @@ query localDataGetWebsiteInterfaces {
weapons_description weapons_description
level_x level_x
story_x story_x
player_name_tooltip
} }
} }
} }