some more filter markup

This commit is contained in:
pablodip 2018-01-19 07:51:50 +01:00
parent 11e4a00ac6
commit 646ad8a038
1 changed files with 26 additions and 20 deletions

View File

@ -61,35 +61,40 @@
:on-focus #(reset! tooltip-open? true)}]])
(defn bounties-filter-tooltip-value [tooltip-open?]
[bounties-filter-tooltip
[:div
"$0 - $1000+"
[bounties-filter-tooltip-value-input "Min" tooltip-open?]
[bounties-filter-tooltip-value-input "Max" tooltip-open?]])
(defn bounties-filter-tooltip-currency []
[bounties-filter-tooltip "CURRENCY"])
(defn bounties-filter-tooltip-currency [tooltip-open?]
[:div.open-bounties-filter-list
(for [t ["ETH" "SNT"]]
[:div.open-bounties-filter-list-option-checkbox
[:label
[:input
{:type "checkbox"
:on-focus #(reset! tooltip-open? true)}]
[:div.text t]]])])
(defn bounties-filter-tooltip-date []
[bounties-filter-tooltip
[:div.open-bounties-filter-list
(for [t ["Last week" "Last month" "Last 3 months"]]
[:div.open-bounties-filter-list-option
t])]])
[:div.open-bounties-filter-list
(for [t ["Last week" "Last month" "Last 3 months"]]
[:div.open-bounties-filter-list-option
t])])
(defn bounties-filter-tooltip-owner [tooltip-open?]
[bounties-filter-tooltip
[:div.open-bounties-filter-list
(for [t ["status-im" "aragon"]]
[:div.open-bounties-filter-list-option-checkbox
[:label
[:input
{:type "checkbox"
:on-focus #(reset! tooltip-open? true)}]
[:div.text t]]])]])
[:div.open-bounties-filter-list
(for [t ["status-im" "aragon"]]
[:div.open-bounties-filter-list-option-checkbox
[:label
[:input
{:type "checkbox"
:on-focus #(reset! tooltip-open? true)}]
[:div.text t]]])])
(defn bounties-filter [name tooltip]
(defn bounties-filter [name tooltip-content]
(let [open? (r/atom false)]
(fn [name tooltip]
(fn [name tooltip-content]
[:div.open-bounties-filter-element-container
{:tab-index 0
:on-focus #(reset! open? true)
@ -99,7 +104,8 @@
:class (when @open? "open-bounties-filter-element-active")}
name]
(when @open?
[tooltip open?])])))
[bounties-filter-tooltip
[tooltip-content open?]])])))
(defn bounties-filters []
[:div.open-bounties-filter