From 840f8cff9b29a64871a64076b50dfdda135d9d26 Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Sat, 7 Sep 2024 17:48:51 +0200 Subject: [PATCH] feat: improve PeopleView labels --- .../{views/expenses => data}/BadgeMessage.java | 12 ++++-------- .../application/munera/views/people/PeopleView.java | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) rename src/main/java/com/application/munera/{views/expenses => data}/BadgeMessage.java (76%) diff --git a/src/main/java/com/application/munera/views/expenses/BadgeMessage.java b/src/main/java/com/application/munera/data/BadgeMessage.java similarity index 76% rename from src/main/java/com/application/munera/views/expenses/BadgeMessage.java rename to src/main/java/com/application/munera/data/BadgeMessage.java index ae19e6e..6e88abf 100644 --- a/src/main/java/com/application/munera/views/expenses/BadgeMessage.java +++ b/src/main/java/com/application/munera/data/BadgeMessage.java @@ -1,5 +1,8 @@ -package com.application.munera.views.expenses; +package com.application.munera.data; +import lombok.Getter; + +@Getter public enum BadgeMessage { PAID_TO_SOMEONE("Paid to someone", "badge success"), PAID_TO_YOU("Paid to you", "badge success"), @@ -17,11 +20,4 @@ public enum BadgeMessage { this.theme = theme; } - public String getText() { - return text; - } - - public String getTheme() { - return theme; - } } diff --git a/src/main/java/com/application/munera/views/people/PeopleView.java b/src/main/java/com/application/munera/views/people/PeopleView.java index c023092..354e5d4 100644 --- a/src/main/java/com/application/munera/views/people/PeopleView.java +++ b/src/main/java/com/application/munera/views/people/PeopleView.java @@ -4,7 +4,7 @@ import com.application.munera.data.*; import com.application.munera.services.ExpenseService; import com.application.munera.services.PersonService; import com.application.munera.views.MainLayout; -import com.application.munera.views.expenses.BadgeMessage; +import com.application.munera.data.BadgeMessage; import com.vaadin.flow.component.UI; import com.vaadin.flow.component.button.Button; import com.vaadin.flow.component.button.ButtonVariant;