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
2e37b9ae
Commit
2e37b9ae
authored
Jan 19, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DESIGN] button in top bar: primary -> light
parent
bb5ba306
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ToggleButton.purs
src/Gargantext/Components/GraphExplorer/ToggleButton.purs
+4
-4
No files found.
src/Gargantext/Components/GraphExplorer/ToggleButton.purs
View file @
2e37b9ae
...
...
@@ -40,7 +40,7 @@ toggleButtonCpt = R.hooksComponentWithModule thisModule "toggleButton" cpt
cpt {state, onMessage, offMessage, onClick} _ = do
let (toggled /\ _) = state
pure $ H.button { className: "btn btn-outline-
primary
" <> cls toggled
pure $ H.button { className: "btn btn-outline-
light
" <> cls toggled
, on: {click: onClick}
} [ R2.small {} [ H.text (text onMessage offMessage toggled) ] ]
...
...
@@ -69,7 +69,7 @@ edgesToggleButtonCpt :: R.Component EdgesButtonProps
edgesToggleButtonCpt = R.hooksComponentWithModule thisModule "edgesToggleButton" cpt
where
cpt {state: (state /\ setState)} _ = do
pure $ H.button { className: "btn btn-outline-
primary
" <> cls state
pure $ H.button { className: "btn btn-outline-
light
" <> cls state
, on: { click: onClick setState }
} [ R2.small {} [ H.text (text state) ] ]
...
...
@@ -110,7 +110,7 @@ pauseForceAtlasButtonCpt :: R.Component ForceAtlasProps
pauseForceAtlasButtonCpt = R.hooksComponentWithModule thisModule "forceAtlasToggleButton" cpt
where
cpt {state: (state /\ setState)} _ = do
pure $ H.button { className: "btn btn-outline-
primary
" <> cls state
pure $ H.button { className: "btn btn-outline-
light
" <> cls state
, on: { click: onClick setState }
} [ R2.small {} [ H.text (text state) ] ]
...
...
@@ -139,7 +139,7 @@ sidebarToggleButton (state /\ setState) = R.createElement el {} []
where
el = R.hooksComponentWithModule thisModule "sidebarToggleButton" cpt
cpt {} _ = do
pure $ H.button { className: "btn btn-outline-
primary
" <> cls state
pure $ H.button { className: "btn btn-outline-
light
" <> cls state
, on: { click: onClick}
} [ R2.small {} [ H.text (text onMessage offMessage 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