Commit e4b362e6 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[PROPOSAL] renaming of prisms.

parent b5265ac7
...@@ -112,8 +112,8 @@ performAction _ _ _ = void do ...@@ -112,8 +112,8 @@ performAction _ _ _ = void do
---------------------------------------------------------- ----------------------------------------------------------
_landingAction :: Prism' Action L.Action _LandingA :: Prism' Action L.Action
_landingAction = prism LandingA \action -> _LandingA = prism LandingA \action ->
case action of case action of
LandingA caction -> Right caction LandingA caction -> Right caction
_-> Left action _-> Left action
...@@ -184,8 +184,8 @@ _graphExplorerAction = prism GraphExplorerA \action -> ...@@ -184,8 +184,8 @@ _graphExplorerAction = prism GraphExplorerA \action ->
GraphExplorerA caction -> Right caction GraphExplorerA caction -> Right caction
_-> Left action _-> Left action
_ngAction :: Prism' Action NG.Action _NgramsA :: Prism' Action NG.Action
_ngAction = prism NgramsA \action -> _NgramsA = prism NgramsA \action ->
case action of case action of
NgramsA caction -> Right caction NgramsA caction -> Right caction
_-> Left action _-> Left action
......
...@@ -34,9 +34,9 @@ import Gargantext.Pages.Layout.Actions ( _addCorpusAction ...@@ -34,9 +34,9 @@ import Gargantext.Pages.Layout.Actions ( _addCorpusAction
, _docAnnotationViewAction , _docAnnotationViewAction
, _docViewAction , _docViewAction
, _graphExplorerAction , _graphExplorerAction
, _landingAction , _LandingA
, _loginAction , _loginAction
, _ngAction , _NgramsA
, _searchAction , _searchAction
, _tabviewAction , _tabviewAction
, _treeAction , _treeAction
...@@ -77,7 +77,7 @@ pagesComponent s = ...@@ -77,7 +77,7 @@ pagesComponent s =
) AppState props Action ) AppState props Action
selectSpec CorpusAnalysis = layout0 $ focus _corpusState _corpusAction CA.spec' selectSpec CorpusAnalysis = layout0 $ focus _corpusState _corpusAction CA.spec'
selectSpec Login = focus _loginState _loginAction LN.renderSpec selectSpec Login = focus _loginState _loginAction LN.renderSpec
selectSpec Home = layout0 $ focus _landingState _landingAction (L.layoutLanding EN) selectSpec Home = layout0 $ focus _landingState _LandingA (L.layoutLanding EN)
selectSpec AddCorpus = layout0 $ focus _addCorpusState _addCorpusAction AC.layoutAddcorpus selectSpec AddCorpus = layout0 $ focus _addCorpusState _addCorpusAction AC.layoutAddcorpus
selectSpec DocView = layout0 $ focus _docViewState _docViewAction DV.layoutDocview selectSpec DocView = layout0 $ focus _docViewState _docViewAction DV.layoutDocview
selectSpec (UserPage i) = layout0 $ focus _userPageState _userPageAction U.layoutUser selectSpec (UserPage i) = layout0 $ focus _userPageState _userPageAction U.layoutUser
...@@ -85,7 +85,7 @@ pagesComponent s = ...@@ -85,7 +85,7 @@ pagesComponent s =
selectSpec Tabview = layout0 $ focus _tabviewState _tabviewAction TV.tab1 selectSpec Tabview = layout0 $ focus _tabviewState _tabviewAction TV.tab1
-- To be removed -- To be removed
selectSpec SearchView = layout0 $ focus _searchState _searchAction S.searchSpec selectSpec SearchView = layout0 $ focus _searchState _searchAction S.searchSpec
selectSpec NGramsTable = layout0 $ focus _ngState _ngAction NG.ngramsTableSpec selectSpec NGramsTable = layout0 $ focus _ngState _NgramsA NG.ngramsTableSpec
selectSpec PGraphExplorer = focus _graphExplorerState _graphExplorerAction GE.specOld selectSpec PGraphExplorer = focus _graphExplorerState _graphExplorerAction GE.specOld
selectSpec Dashboard = layout0 $ focus _dashBoardSate _dashBoardAction Dsh.layoutDashboard selectSpec Dashboard = layout0 $ focus _dashBoardSate _dashBoardAction Dsh.layoutDashboard
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment