Skip to content

Commit

Permalink
Add subtitle edit field (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregpereira authored Jan 13, 2024
1 parent 78af2aa commit ee858a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ internal fun MonsterHeaderForm(
onValueChange = { onMonsterChanged(monster.copy(name = it)) }
)

AppTextField(
text = monster.subtitle,
label = stringResource(R.string.monster_registration_name),
onValueChange = { onMonsterChanged(monster.copy(subtitle = it)) }
)

AppTextField(
text = monster.group.orEmpty(),
label = stringResource(R.string.monster_registration_group),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

<string name="monster_registration_add_new">Adicionar novo (Em construção)</string>
<string name="monster_registration_name">Nome</string>
<string name="monster_registration_subtitle">Subtítutlo</string>
<string name="monster_registration_description">Descrição</string>
<string name="monster_registration_ability_scores">Atributos</string>
<string name="monster_registration_attack_bonus">Ataque Bônus</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

<string name="monster_registration_add_new">Add new (Work in progress)</string>
<string name="monster_registration_name">Name</string>
<string name="monster_registration_subtitle">Subtitle</string>
<string name="monster_registration_description">Description</string>
<string name="monster_registration_ability_scores">Ability Scores</string>
<string name="monster_registration_attack_bonus">Attack Bonus</string>
Expand Down

0 comments on commit ee858a8

Please sign in to comment.