Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
6a2394ab
Commit
6a2394ab
authored
Nov 19, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Contact String String -> Contact Void Void, does not render either.
parent
92fcaf6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
API.purs
src/Gargantext/Pages/Annuaire/User/Contacts/API.purs
+1
-1
Renders.purs
...argantext/Pages/Annuaire/User/Contacts/Specs/Renders.purs
+1
-1
Types.purs
src/Gargantext/Pages/Annuaire/User/Contacts/Types.purs
+2
-2
No files found.
src/Gargantext/Pages/Annuaire/User/Contacts/API.purs
View file @
6a2394ab
...
@@ -15,7 +15,7 @@ import Gargantext.Prelude
...
@@ -15,7 +15,7 @@ import Gargantext.Prelude
import Gargantext.Pages.Annuaire.User.Contacts.Types (Action(..), State, Contact, _contact)
import Gargantext.Pages.Annuaire.User.Contacts.Types (Action(..), State, Contact, _contact)
import Thermite (PerformAction, modifyState)
import Thermite (PerformAction, modifyState)
getContact :: Int -> Aff (Contact
String String
)
getContact :: Int -> Aff (Contact
Void Void
)
getContact id = get $ toUrl Back Node id
getContact id = get $ toUrl Back Node id
fetchContact :: Int -> StateCoTransformer State Unit
fetchContact :: Int -> StateCoTransformer State Unit
...
...
src/Gargantext/Pages/Annuaire/User/Contacts/Specs/Renders.purs
View file @
6a2394ab
...
@@ -55,7 +55,7 @@ mapMyMap f m = toUnfoldable
...
@@ -55,7 +55,7 @@ mapMyMap f m = toUnfoldable
infixl 4 mapMyMap as <.~$>
infixl 4 mapMyMap as <.~$>
contactInfos :: HyperData
String String
-> ReactElement
contactInfos :: HyperData
Void Void
-> ReactElement
contactInfos hyperdata =
contactInfos hyperdata =
ul [className "list-group"] [] {- $
ul [className "list-group"] [] {- $
listInfo <.~$> hyperdata
listInfo <.~$> hyperdata
...
...
src/Gargantext/Pages/Annuaire/User/Contacts/Types.purs
View file @
6a2394ab
...
@@ -61,7 +61,7 @@ data Action
...
@@ -61,7 +61,7 @@ data Action
type State =
type State =
{ activeTab :: Int
{ activeTab :: Int
, contact :: Maybe (Contact
String String
)
, contact :: Maybe (Contact
Void Void
)
}
}
initialState :: State
initialState :: State
...
@@ -70,7 +70,7 @@ initialState =
...
@@ -70,7 +70,7 @@ initialState =
, contact: Nothing
, contact: Nothing
}
}
_contact :: Lens' State (Maybe (Contact
String String
))
_contact :: Lens' State (Maybe (Contact
Void Void
))
_contact = lens (\s -> s.contact) (\s ss -> s{contact = ss})
_contact = lens (\s -> s.contact) (\s ss -> s{contact = ss})
_tablens :: Lens' State Tab.State
_tablens :: Lens' State Tab.State
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment