Skip to content

Commit

Permalink
update&fix[UserPageView]: Remove appstate to increase MVC Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Marjoni committed Apr 16, 2026
1 parent 92b41fd commit c350ee2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ public void showAboutUsPage() {
*/
public void showUserPage() {
root.setTop(header);
root.setCenter(new UserPageView(appState, this, authController, donationController, organizationController));
root.setCenter(new UserPageView(this, authController, donationController, organizationController));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import edu.group5.app.utils.ParameterValidator;
import edu.group5.app.control.NavigationController;
import edu.group5.app.control.OrganizationController;
import edu.group5.app.model.AppState;
import javafx.application.Platform;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.TextField;
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/edu/group5/app/view/userpage/UserPageView.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import edu.group5.app.control.NavigationController;
import edu.group5.app.control.OrganizationController;
import edu.group5.app.control.AuthController;
import edu.group5.app.model.AppState;
import edu.group5.app.model.donation.Donation;
import edu.group5.app.model.organization.Organization;
import edu.group5.app.model.user.User;
Expand All @@ -26,14 +25,13 @@


public class UserPageView extends BorderPane {
private final AppState appState;
private final NavigationController nav;
private final AuthController authController;
private final DonationController donationController;
private final OrganizationController organizationController;

public UserPageView(AppState appState, NavigationController nav, AuthController authController, DonationController donationController, OrganizationController organizationController) {
this.appState = appState;
public UserPageView(NavigationController nav, AuthController authController,
DonationController donationController, OrganizationController organizationController) {
this.nav = nav;
this.authController = authController;
this.donationController = donationController;
Expand Down

0 comments on commit c350ee2

Please sign in to comment.