aboutsummaryrefslogtreecommitdiff
path: root/examples/svg.gleam
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-12-22 01:10:59 +0000
committerHayleigh Thompson <me@hayleigh.dev>2023-12-22 11:01:21 +0000
commit76a166736135a522a740b24d776a2e3b9656fdbd (patch)
tree75d7fa60c69f850dd2e46a386ae5ed3db0eb4438 /examples/svg.gleam
parentfb0e3a9b1835dc30ba196ddb630f02f9d554978a (diff)
downloadlustre-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.gleam20
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) {