diff --git a/src/Entries.tsx b/src/Entries.tsx index d67cf43..998cd81 100644 --- a/src/Entries.tsx +++ b/src/Entries.tsx @@ -113,40 +113,36 @@ function formatMorphology(entry) { const JutEntry = (props: {entry: JutEntryProps}) => { const {entry} = props; - return ( -
- { entry.jut } - { entry.eng } -
- - { entry.syn_category === "noun" ? entry.gender : null } - -
); + const langSpecific = (
+ + {entry.syn_category} { entry.syn_category === "noun" ? `- ${entry.gender}` : null } + +
); + + return ; }; const ElesuEntry = (props: {entry: ElesuEntryProps}) => { const {entry} = props; - return ( -
- { entry.elesu } - { entry.eng } -
- - { entry.syn_category } - -
); + const langSpecific =
+ + { entry.syn_category } + +
; + + return ; }; const TukEntry = (props: {entry: TukEntryProps}) => { const {entry} = props; + const langSpecific =
+ + { entry.syn_category } + +
; - return ( -
- { entry.tuk } - { entry.eng } -
- - { entry.syn_category } - -
); + return ; }; export {SaiEntry, ElesuEntry, JutEntry, TukEntry};