diff options
| author | Joris | 2019-11-03 11:28:42 +0100 | 
|---|---|---|
| committer | Joris | 2019-11-03 11:28:42 +0100 | 
| commit | 9dbb4e6f7c2f0edc1126626e2ff498144c6b9947 (patch) | |
| tree | da352e0861a2786a3a57dab2397ec7d678b5919b /client/src/View/Income/Reducer.hs | |
| parent | a267f0bb4566389342c3244d3c082dc2453f4615 (diff) | |
Show income header
Diffstat (limited to 'client/src/View/Income/Reducer.hs')
| -rw-r--r-- | client/src/View/Income/Reducer.hs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/client/src/View/Income/Reducer.hs b/client/src/View/Income/Reducer.hs index 5b346cb..092d9b3 100644 --- a/client/src/View/Income/Reducer.hs +++ b/client/src/View/Income/Reducer.hs @@ -9,7 +9,7 @@ import qualified Data.Text    as T  import           Reflex.Dom   (Dynamic, Event, MonadWidget)  import qualified Reflex.Dom   as R -import           Common.Model (IncomesAndCount) +import           Common.Model (IncomePage)  import           Loadable     (Loadable (..))  import qualified Loadable     as Loadable @@ -28,9 +28,9 @@ data In t a b c = In  data Action    = LoadPage Int -  | GetResult (Either Text IncomesAndCount) +  | GetResult (Either Text IncomePage) -reducer :: forall t m a b c. MonadWidget t m => In t a b c -> m (Dynamic t (Loadable IncomesAndCount)) +reducer :: forall t m a b c. MonadWidget t m => In t a b c -> m (Dynamic t (Loadable IncomePage))  reducer input = do    postBuild <- R.getPostBuild @@ -60,7 +60,7 @@ reducer input = do    where      pageUrl p = -      "api/v2/incomes?page=" +      "api/incomes?page="        <> (T.pack . show $ p)        <> "&perPage="        <> (T.pack . show $ perPage) | 
