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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
fc4ddefb
Commit
fc4ddefb
authored
Dec 04, 2024
by
Yoelis Acourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: types mess
parent
613e9cc4
Pipeline
#7085
passed with stages
in 17 minutes and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Search.purs
...Gargantext/Components/Forest/Tree/Node/Action/Search.purs
+1
-1
SearchForm.purs
...Components/Forest/Tree/Node/Action/Search/SearchForm.purs
+5
-4
No files found.
src/Gargantext/Components/Forest/Tree/Node/Action/Search.purs
View file @
fc4ddefb
...
...
@@ -84,7 +84,7 @@ actionSearchWithLangsCpt = here.component "actionSearchWithLangs" cpt
where
searchOn
:: (Action -> Aff Unit)
-> G
T.AsyncTaskWithType
-> G
AT.Task
-> Effect Unit
searchOn dispatch' task = do
_ <- launchAff $ dispatch' (DoSearch task)
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Search/SearchForm.purs
View file @
fc4ddefb
...
...
@@ -12,6 +12,7 @@ import Data.Set as Set
import Data.String.Common (joinWith)
import Data.Tuple (Tuple(..))
import Effect (Effect)
import Gargantext.AsyncTasks as GAT
import Effect.Aff (launchAff_)
import Effect.Class (liftEffect)
import Gargantext.Components.Bootstrap (formInput)
...
...
@@ -58,7 +59,7 @@ type Props =
, errors :: T.Box (Array FrontendError)
, langs :: Array Lang
-- State hook for a search, how we get data in and out
, onSearch :: G
T.AsyncTaskWithType
-> Effect Unit
, onSearch :: G
AT.Task
-> Effect Unit
, search :: T.Box Search
, session :: Session
)
...
...
@@ -709,7 +710,7 @@ searchInputCpt = here.component "searchInput" cpt
type SubmitButtonProps =
( errors :: T.Box (Array FrontendError)
, onSearch :: G
T.AsyncTaskWithType
-> Effect Unit
, onSearch :: G
AT.Task
-> Effect Unit
, search :: T.Box Search
, selection :: T.Box ListSelection.Selection
, session :: Session
...
...
@@ -744,14 +745,14 @@ submitButtonComponent = here.component "submitButton" cpt
type TriggerSearch =
( errors :: T.Box (Array FrontendError)
, onSearch :: G
T.AsyncTaskWithType
-> Effect Unit
, onSearch :: G
AT.Task
-> Effect Unit
, search :: T.Box Search
, selection :: T.Box ListSelection.Selection
, session :: Session
)
triggerSearch
:: { onSearch :: (G
T.AsyncTaskWithType
-> Effect Unit)
:: { onSearch :: (G
AT.Task
-> Effect Unit)
, errors :: T.Box (Array FrontendError)
, session :: Session
, selection :: ListSelection.Selection
...
...
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