diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2023-12-22 01:10:59 +0000 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2023-12-22 11:01:21 +0000 |
commit | 76a166736135a522a740b24d776a2e3b9656fdbd (patch) | |
tree | 75d7fa60c69f850dd2e46a386ae5ed3db0eb4438 /examples/svg.gleam | |
parent | fb0e3a9b1835dc30ba196ddb630f02f9d554978a (diff) | |
download | lustre-76a166736135a522a740b24d776a2e3b9656fdbd.tar.gz lustre-76a166736135a522a740b24d776a2e3b9656fdbd.zip |
:heavy_plus_sign: Upgrade to Gleam v0.33.0
Diffstat (limited to 'examples/svg.gleam')
-rw-r--r-- | examples/svg.gleam | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/examples/svg.gleam b/examples/svg.gleam index 640867b..93be5e3 100644 --- a/examples/svg.gleam +++ b/examples/svg.gleam @@ -46,18 +46,14 @@ pub fn update(model: Model, msg: Msg) -> Model { // VIEW ------------------------------------------------------------------------ pub fn view(model: Model) -> Element(Msg) { - div( - [], - [ - button( - [event.on_click(Incr)], - [plus([attribute.style([#("color", "red")])])], - ), - button([event.on_click(Decr)], [minus([])]), - button([event.on_click(Reset)], [text("Reset")]), - p([], [text(int.to_string(model))]), - ], - ) + div([], [ + button([event.on_click(Incr)], [ + plus([attribute.style([#("color", "red")])]), + ]), + button([event.on_click(Decr)], [minus([])]), + button([event.on_click(Reset)], [text("Reset")]), + p([], [text(int.to_string(model))]), + ]) } fn plus(attrs) { |