From 3714226d7a0ad4a78e381d9767c3e64d12d6605a Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Tue, 16 Apr 2024 19:27:19 +0100 Subject: :heavy_plus_sign: Update examples to work with latest lustre_dev_tools release. --- examples/05-http-requests/src/app.gleam | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'examples/05-http-requests/src') diff --git a/examples/05-http-requests/src/app.gleam b/examples/05-http-requests/src/app.gleam index 5e0df3e..acd5fcc 100644 --- a/examples/05-http-requests/src/app.gleam +++ b/examples/05-http-requests/src/app.gleam @@ -6,20 +6,13 @@ import lustre/effect.{type Effect} import lustre/element.{type Element} import lustre/element/html import lustre/event + // Lustre_http is a community package that provides a simple API for making // HTTP requests from your update function. You can find the docs for the package // here: https://hexdocs.pm/lustre_http/index.html -import lustre_http.{type HttpError} -// These examples are written with `lustre/ui` in mind. They'll work regardless, -// but to see what `lustre/ui` can do make sure to run each of these examples with -// the `--use-example-styles` flag: -// -// $ gleam run -m lustre/dev start --use-example-styles -// -// In your own apps, make sure to add the `lustre/ui` dependency and include the -// stylesheet somewhere. import lustre/ui -import lustre/ui/aside +import lustre/ui/layout/aside +import lustre_http.{type HttpError} // MAIN ------------------------------------------------------------------------ -- cgit v1.2.3