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
132
Issues
132
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
c916a1cc
Commit
c916a1cc
authored
Feb 14, 2025
by
Grégoire Locqueville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless calls to unsafeSet
parent
bcdff0bb
Pipeline
#7328
passed with stages
in 20 minutes and 1 second
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
SubcorpusCreation.purs
src/Gargantext/Components/DocsTable/SubcorpusCreation.purs
+2
-3
LoginForm.purs
src/Gargantext/Components/Login/LoginForm.purs
+2
-3
No files found.
src/Gargantext/Components/DocsTable/SubcorpusCreation.purs
View file @
c916a1cc
...
...
@@ -7,7 +7,6 @@ import Gargantext.Hooks.StateRecord (useStateRecord)
import Gargantext.Components.Bootstrap as B
import Gargantext.Components.Bootstrap.Types (ButtonVariant(..), ComponentStatus(..), Variant(..))
import Gargantext.Utils.Reactix as R2
import Record.Unsafe (unsafeSet)
import Reactix as R
import Reactix.DOM.HTML as H
import Toestand as T
...
...
@@ -30,7 +29,7 @@ component = R.hooksComponent "subcorpusCreation" cpt
let
onParentListCheckboxChange :: Boolean -> Effect Unit
onParentListCheckboxChange value = T.modify_
(\prev ->
unsafeSet "reuseParentList" value prev
)
(\prev ->
prev { reuseParentList = value }
)
stateBox
pure $ H.div {}
...
...
src/Gargantext/Components/Login/LoginForm.purs
View file @
c916a1cc
...
...
@@ -30,7 +30,6 @@ import Gargantext.Utils.Reactix as R2
import Reactix as R
import Reactix.DOM.HTML as H
import Record as Record
import Record.Unsafe (unsafeSet)
import Toestand as T
here :: R2.Here
...
...
@@ -119,13 +118,13 @@ componentCpt = here.component "main" cpt
-- @XXX StateRecord with distinct value types
onAgreedCheckboxChange :: Boolean -> Effect Unit
onAgreedCheckboxChange value = T.modify_
(\prev ->
unsafeSet "agreed" value prev
)
(\prev ->
prev { agreed = value }
)
stateBox
-- @XXX StateRecord with distinct value types
onAgreedLabelClick :: Unit -> Effect Unit
onAgreedLabelClick _ = T.modify_
(\prev ->
unsafeSet "agreed" (not state.agreed) prev
)
(\prev ->
prev { agreed = not state.agreed }
)
stateBox
-- | Render
...
...
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