Coding style corrections.
parent
ed4ac04c28
commit
afe576a557
|
@ -80,11 +80,11 @@ initialState _ =
|
||||||
}
|
}
|
||||||
|
|
||||||
render :: forall m. State -> H.ComponentHTML Action () m
|
render :: forall m. State -> H.ComponentHTML Action () m
|
||||||
render { wsUp,
|
render { wsUp, authenticationForm, registrationForm }
|
||||||
authenticationForm,
|
= Bulma.section_small
|
||||||
registrationForm }
|
[ case wsUp of
|
||||||
= HH.div_
|
false -> Bulma.p "You are disconnected."
|
||||||
[ Bulma.columns_ [ Bulma.column_ auth_form, Bulma.column_ register_form ]
|
true -> Bulma.columns_ [ Bulma.column_ auth_form, Bulma.column_ register_form ]
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
|
|
||||||
|
|
|
@ -104,8 +104,10 @@ initialState token =
|
||||||
|
|
||||||
render :: forall m. State -> H.ComponentHTML Action () m
|
render :: forall m. State -> H.ComponentHTML Action () m
|
||||||
render { accepted_domains, my_domains, newDomainForm, wsUp }
|
render { accepted_domains, my_domains, newDomainForm, wsUp }
|
||||||
= Bulma.section_medium
|
= Bulma.section_small
|
||||||
[ Bulma.columns_ [ Bulma.column_ newdomain_form, Bulma.column_ list_of_own_domains ]
|
[ case wsUp of
|
||||||
|
false -> Bulma.p "You are disconnected."
|
||||||
|
true -> Bulma.columns_ [ Bulma.column_ newdomain_form, Bulma.column_ list_of_own_domains ]
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
|
|
||||||
|
|
|
@ -319,6 +319,9 @@ box_password :: forall w i.
|
||||||
String -> String -> (String -> i) -> String -> Boolean -> (HP.IProp DHI.HTMLinput i) -> HH.HTML w i
|
String -> String -> (String -> i) -> String -> Boolean -> (HP.IProp DHI.HTMLinput i) -> HH.HTML w i
|
||||||
box_password = field_inner true
|
box_password = field_inner true
|
||||||
|
|
||||||
|
section_small :: forall w i. Array (HH.HTML w i) -> HH.HTML w i
|
||||||
|
section_small = HH.section [ HP.classes (C.section <> C.is_small) ]
|
||||||
|
|
||||||
section_medium :: forall w i. Array (HH.HTML w i) -> HH.HTML w i
|
section_medium :: forall w i. Array (HH.HTML w i) -> HH.HTML w i
|
||||||
section_medium = HH.section [ HP.classes (C.section <> C.medium) ]
|
section_medium = HH.section [ HP.classes (C.section <> C.medium) ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue