This commit is contained in:
lingdocs 2022-04-05 00:51:58 +05:00
parent 69cf37be70
commit 051d8a0b72
2 changed files with 10 additions and 7 deletions

View File

@ -122,7 +122,7 @@ function VerbPickerBelow({ onChange, verb }: {
} }
const tOptions = (verb?.tenseCategory === "perfect") ? perfectTenseOptions : tenseOptions; const tOptions = (verb?.tenseCategory === "perfect") ? perfectTenseOptions : tenseOptions;
return <div className="mb-4 mt-3"> return <div className="mb-4 mt-3">
<div style={{ maxWidth: "300px", margin: "0 auto" }}> <div style={{ maxWidth: "300px", minWidth: "250px", margin: "0 auto" }}>
<div className="d-flex flex-row justify-content-between align-items-center"> <div className="d-flex flex-row justify-content-between align-items-center">
<div className="h5">Tense:</div> <div className="h5">Tense:</div>
{verb && <div className="mb-2"> {verb && <div className="mb-2">

View File

@ -12,7 +12,8 @@ import {
const kingEmoji = "👑"; const kingEmoji = "👑";
const servantEmoji = "🙇‍♂️"; const servantEmoji = "🙇‍♂️";
// TODO: Ability to choose stative/dynamic compounds when both work // TODO: SHOW KING AND SERVANT ONCE TENSE PICKED, EVEN IF NPs not selected
// TODO: Issue with "the money were taken"
// TODO: error handling on error with rendering etc // TODO: error handling on error with rendering etc
export function PhraseBuilder() { export function PhraseBuilder() {
@ -82,12 +83,14 @@ export function PhraseBuilder() {
onChange={handleObjectChange} onChange={handleObjectChange}
/>} />}
</div>} </div>}
<div className="my-2">
<VerbPickerBelow
verbs={verbs}
verb={verb}
onChange={setVerb}
/>
</div>
</div> </div>
<VerbPickerBelow
verbs={verbs}
verb={verb}
onChange={setVerb}
/>
{verbPhrase && <div> {verbPhrase && <div>
<VPDisplay VP={verbPhrase} /> <VPDisplay VP={verbPhrase} />
</div>} </div>}