Commit 3fccf8d8 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[Graph] sidebar checkbox refactoring

parent 656fff60
...@@ -69,43 +69,24 @@ sidebarCpt = R.hooksComponent "Sidebar" cpt ...@@ -69,43 +69,24 @@ sidebarCpt = R.hooksComponent "Sidebar" cpt
[ [
RH.ul {} RH.ul {}
[ [
RH.li {} checkbox "Pubs"
[ , checkbox "Projects"
RH.span {} [ RH.text "Pubs" ] , checkbox "Patents"
, RH.input { type: "checkbox" , checkbox "Others"
, className: "checkbox" ]
, checked: true
, title: "Mark as completed" }
] ]
, RH.li {}
[
RH.span {} [ RH.text "Projects" ]
, RH.input { type: "checkbox"
, className: "checkbox"
, checked: true
, title: "Mark as completed" }
] ]
, RH.li {}
[
RH.span {} [ RH.text "Patents" ]
, RH.input { type: "checkbox"
, className: "checkbox"
, checked: true
, title: "Mark as completed" }
] ]
, RH.li {} ]
badge text =
RH.a { className: "badge badge-light" } [ RH.text text ]
checkbox text =
RH.li {}
[ [
RH.span {} [ RH.text "Others" ] RH.span {} [ RH.text text ]
, RH.input { type: "checkbox" , RH.input { type: "checkbox"
, className: "checkbox" , className: "checkbox"
, checked: true , checked: true
, title: "Mark as completed" } , title: "Mark as completed" }
] ]
]
]
]
]
]
badge text =
RH.a { className: "badge badge-light" } [ RH.text text ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment