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;