From 2ccf44eeb26cb082c4e7f216d4aa7142335f3078 Mon Sep 17 00:00:00 2001 From: luigi-borriello00 Date: Wed, 6 Sep 2023 21:35:20 +0200 Subject: [PATCH] fix(applicationState): remove useless parameter --- src/main/scala/scatan/Main.scala | 2 +- src/main/scala/scatan/model/ApplicationModel.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/scatan/Main.scala b/src/main/scala/scatan/Main.scala index 262db83e..660dac71 100644 --- a/src/main/scala/scatan/Main.scala +++ b/src/main/scala/scatan/Main.scala @@ -39,7 +39,7 @@ enum Pages(val pageFactory: PageFactory[?, ?, ApplicationState]): // App val Application: NavigableApplication[ApplicationState, Pages] = NavigableApplication[ApplicationState, Pages]( - initialState = ApplicationState(0), + initialState = ApplicationState(), pagesFactories = Pages.values.map(p => p -> p.pageFactory).toMap ) diff --git a/src/main/scala/scatan/model/ApplicationModel.scala b/src/main/scala/scatan/model/ApplicationModel.scala index 6d33098b..dfb474db 100644 --- a/src/main/scala/scatan/model/ApplicationModel.scala +++ b/src/main/scala/scatan/model/ApplicationModel.scala @@ -2,4 +2,4 @@ package scatan.model import scatan.mvc.lib.Model -final case class ApplicationState(boo: Int) extends Model.State +final case class ApplicationState() extends Model.State