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:
parent
09c8d858ed
commit
45be9b66db
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue