aboutsummaryrefslogtreecommitdiff
path: root/test/examples/input.gleam
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-07-20 21:39:39 +0100
committerHayleigh Thompson <me@hayleigh.dev>2023-07-20 21:39:39 +0100
commitc6e25797328a167c986f9e8503b028157a0105aa (patch)
tree575609b8b2c86cb4378ec17ad9fee0d11f4dae64 /test/examples/input.gleam
parentb6fb7195307e9c5e3a085080e2ee63acf19e3123 (diff)
downloadlustre-c6e25797328a167c986f9e8503b028157a0105aa.tar.gz
lustre-c6e25797328a167c986f9e8503b028157a0105aa.zip
:recycle:
Rename terse 'h' and 't' to 'element' and 'text'.
Diffstat (limited to 'test/examples/input.gleam')
-rw-r--r--test/examples/input.gleam10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/examples/input.gleam b/test/examples/input.gleam
index da93d47..4e1fe96 100644
--- a/test/examples/input.gleam
+++ b/test/examples/input.gleam
@@ -4,7 +4,7 @@ import gleam/dynamic
import gleam/string
import lustre
import lustre/attribute.{attribute}
-import lustre/element.{Element, t}
+import lustre/element.{Element, text}
import lustre/event
import lustre/html.{div, input, label, pre}
@@ -71,7 +71,7 @@ fn render(model: Model) -> Element(Msg) {
|> string.replace("(", "(\n ")
|> string.replace(", ", ",\n ")
|> string.replace(")", "\n)")
- |> t,
+ |> text,
],
),
]),
@@ -96,12 +96,12 @@ fn render_input(
type_: String,
id: String,
value: String,
- text: String,
+ label_: String,
) -> Element(Msg) {
div(
[attribute.class("input")],
[
- label([attribute.for(id)], [t(text)]),
+ label([attribute.for(id)], [text(label_)]),
input([
attribute.id(id),
attribute.name(id),
@@ -126,7 +126,7 @@ fn remember_checkbox(checked: Bool) -> Element(Msg) {
attribute.class("checkbox"),
event.on_click(Toggled(RememberMe, !checked)),
]),
- label([attribute.for("remember-me")], [t("Remember me")]),
+ label([attribute.for("remember-me")], [text("Remember me")]),
],
)
}