From 7dfac0fad2a9791c50dee33b3acbf133e4e1003b Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 2 Feb 2022 13:19:30 -0300 Subject: [PATCH] fix(demo): update icon constants to FontAwesome 6 --- .../flowingcode/vaadin/addons/fontawesome/IconsGalleryView.java | 2 +- .../com/flowingcode/vaadin/addons/fontawesome/SimpleDemo.java | 2 +- .../vaadin/addons/fontawesome/TemplateRendererDemo.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/flowingcode/vaadin/addons/fontawesome/IconsGalleryView.java b/src/test/java/com/flowingcode/vaadin/addons/fontawesome/IconsGalleryView.java index 6a510b7..3b0fc18 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/fontawesome/IconsGalleryView.java +++ b/src/test/java/com/flowingcode/vaadin/addons/fontawesome/IconsGalleryView.java @@ -90,7 +90,7 @@ public class IconsGalleryView extends Div { private void showDetails(Object icon) { DemoViewSingle view = new DemoViewSingle(); - Button closeButton = new Button(FontAwesome.Regular.WINDOW_CLOSE.create()); + Button closeButton = new Button(FontAwesome.Regular.SQUARE_X.create()); closeButton.addClassName("close-button"); HorizontalLayout top = new HorizontalLayout(closeButton); diff --git a/src/test/java/com/flowingcode/vaadin/addons/fontawesome/SimpleDemo.java b/src/test/java/com/flowingcode/vaadin/addons/fontawesome/SimpleDemo.java index f95660c..a9ae7f7 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/fontawesome/SimpleDemo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/fontawesome/SimpleDemo.java @@ -34,7 +34,7 @@ public class SimpleDemo extends VerticalLayout { public SimpleDemo() { //add a button with an iron icon - add(new Button("Save", FontAwesome.Regular.SAVE.create(), ev->{ + add(new Button("Save", FontAwesome.Regular.FLOPPY_DISK.create(), ev->{ Notification.show("Saved!"); })); diff --git a/src/test/java/com/flowingcode/vaadin/addons/fontawesome/TemplateRendererDemo.java b/src/test/java/com/flowingcode/vaadin/addons/fontawesome/TemplateRendererDemo.java index 09b4950..eab76a2 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/fontawesome/TemplateRendererDemo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/fontawesome/TemplateRendererDemo.java @@ -45,7 +45,7 @@ public TemplateRendererDemo() { grid.setDataProvider(new ListDataProvider<>(personList)); grid.addColumn(TemplateRenderer.of( - "[[item.id]]") + "[[item.id]]") .withProperty("id", Person::getId)).setHeader("ID"); grid.addColumn(TemplateRenderer.of( "[[item.name]]")