fix subtitle in list items

arguments were missing in reagent-render args so component wasn't
reacting to changes

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2019-09-02 20:12:33 +02:00
parent 09c8d858ed
commit 45be9b66db
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 4 additions and 4 deletions

View File

@ -134,12 +134,12 @@
(when title-row-accessory (when title-row-accessory
[react/view styles/title-row-accessory-container title-row-accessory])]) [react/view styles/title-row-accessory-container title-row-accessory])])
(defn subtitle-row [{:keys [subtitle subtitle-max-lines subtitle-row-accessory]} (defn subtitle-row
icon? theme] [subtitle-row-elements icon? theme]
(let [subtitle-row-accessory-width (reagent/atom 0)] (let [subtitle-row-accessory-width (reagent/atom 0)]
(reagent/create-class (reagent/create-class
{:render {:reagent-render
(fn [] (fn [{:keys [subtitle subtitle-max-lines subtitle-row-accessory]} icon? theme]
[react/view styles/subtitle-row-container [react/view styles/subtitle-row-container
(cond (cond
(or (string? subtitle) (keyword? subtitle) (number? subtitle)) (or (string? subtitle) (keyword? subtitle) (number? subtitle))