Skip to content

Commit

Permalink
Fix ru name suggest forgetting values (#705)
Browse files Browse the repository at this point in the history
## About The Pull Request
Линии теперь не очищаются при заполнении
В плейсхолдере теперь пример


![image](https://github.com/user-attachments/assets/1915370b-2b5f-432c-a2e1-ad3435471755)


![image](https://github.com/user-attachments/assets/dabf2b7a-cedf-43bc-9bc9-5db9982510b4)
  • Loading branch information
larentoun authored Nov 13, 2024
1 parent 1ba304a commit 79e46b8
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions tgui/packages/tgui/interfaces/RuNamesSuggestPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,50 @@ export const RuNamesSuggestPanel = (props) => {
<Section title={'Оригинал: ' + visible_name}>
<LabeledList>
<LabeledList.Item label="Именительный (Кто? Что?)">
<Input width="100%" onChange={(e, value) => setNominative(value)} />
<Input
width="100%"
value={nominative}
placeholder="Клоун/Ассистуха..."
onChange={(e, value) => setNominative(value)}
/>
</LabeledList.Item>
<LabeledList.Item label="Родительный (Кого? Чего?)">
<Input width="100%" onChange={(e, value) => setGenitive(value)} />
<Input
width="100%"
value={genitive}
placeholder="Клоуна/Ассистухи..."
onChange={(e, value) => setGenitive(value)}
/>
</LabeledList.Item>
<LabeledList.Item label="Дательный (Кому? Чему?)">
<Input width="100%" onChange={(e, value) => setDative(value)} />
<Input
width="100%"
value={dative}
placeholder="Клоуну/Ассистухе..."
onChange={(e, value) => setDative(value)}
/>
</LabeledList.Item>
<LabeledList.Item label="Винительный (Кого? Что?)">
<Input width="100%" onChange={(e, value) => setAccusative(value)} />
<Input
width="100%"
value={accusative}
placeholder="Клоуна/Ассистуху..."
onChange={(e, value) => setAccusative(value)}
/>
</LabeledList.Item>
<LabeledList.Item label="Творительный (Кем? Чем?)">
<Input
width="100%"
value={instrumental}
placeholder="Клоуном/Ассистухой..."
onChange={(e, value) => setInstrumental(value)}
/>
</LabeledList.Item>
<LabeledList.Item label="Предложный (О/В ком/чём?)">
<Input
width="100%"
value={prepositional}
placeholder="Клоуне/Ассистухе..."
onChange={(e, value) => setPrepositional(value)}
/>
</LabeledList.Item>
Expand Down

0 comments on commit 79e46b8

Please sign in to comment.