Skip to content

Commit

Permalink
better it
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Oct 15, 2024
1 parent eb20d10 commit 6783136
Showing 1 changed file with 35 additions and 40 deletions.
75 changes: 35 additions & 40 deletions tgui/packages/tgui/interfaces/RuNamesSuggestPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,64 +19,59 @@ export const RuNamesSuggestPanel = (props) => {
<Section title={'Оригинал: ' + visible_name}>
<LabeledList>
<LabeledList.Item label="Именительный (Кто? Что?)">
<Input
width="225px"
onChange={(e, value) => setNominative(value)}
/>
<Input width="100%" onChange={(e, value) => setNominative(value)} />
</LabeledList.Item>
<LabeledList.Item label="Родительный (Кого? Чего?)">
<Input width="225px" onChange={(e, value) => setGenitive(value)} />
<Input width="100%" onChange={(e, value) => setGenitive(value)} />
</LabeledList.Item>
<LabeledList.Item label="Дательный (Кому? Чему?)">
<Input width="225px" onChange={(e, value) => setDative(value)} />
<Input width="100%" onChange={(e, value) => setDative(value)} />
</LabeledList.Item>
<LabeledList.Item label="Винительный (Кого? Что?)">
<Input
width="225px"
onChange={(e, value) => setAccusative(value)}
/>
<Input width="100%" onChange={(e, value) => setAccusative(value)} />
</LabeledList.Item>
<LabeledList.Item label="Творительный (Кем? Чем?)">
<Input
width="225px"
width="100%"
onChange={(e, value) => setInstrumental(value)}
/>
</LabeledList.Item>
<LabeledList.Item label="Предложный (О/В ком/чём?)">
<Input
width="225px"
width="100%"
onChange={(e, value) => setPrepositional(value)}
/>
</LabeledList.Item>
<LabeledList.Item>
<Button.Confirm
confirmColor="green"
confirmContent="Вы уверены?"
disabled={
!nominative ||
!genitive ||
!dative ||
!accusative ||
!instrumental ||
!prepositional
}
onClick={() =>
act('send', {
entries: [
nominative,
genitive,
dative,
accusative,
instrumental,
prepositional,
],
})
}
>
Отправить
</Button.Confirm>
</LabeledList.Item>
</LabeledList>
<Button.Confirm
fluid
textAlign="center"
mt={1.5}
confirmColor="green"
confirmContent="Вы уверены?"
disabled={
!nominative ||
!genitive ||
!dative ||
!accusative ||
!instrumental ||
!prepositional
}
onClick={() =>
act('send', {
entries: [
nominative,
genitive,
dative,
accusative,
instrumental,
prepositional,
],
})
}
>
Отправить
</Button.Confirm>
</Section>
</Window>
);
Expand Down

0 comments on commit 6783136

Please sign in to comment.