From beb9413a90a8a79a335ec27ee235db84eeb146b9 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Wed, 15 Sep 2021 01:36:12 -0700 Subject: [PATCH] Generalize to all conlangs --- src/Entries.tsx | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) 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};