Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Salamander - APP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eirik Martin Danielsen
Salamander - APP
Commits
8b6c05b8
Commit
8b6c05b8
authored
4 years ago
by
Andrea Magnussen
Browse files
Options
Downloads
Patches
Plain Diff
Commented redux files
parent
dde0e40f
No related branches found
No related tags found
1 merge request
!69
Resolve "Refactor app"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/CustomDropDown.js
+0
-1
0 additions, 1 deletion
components/CustomDropDown.js
redux/actions/UserActions.js
+12
-0
12 additions, 0 deletions
redux/actions/UserActions.js
with
12 additions
and
1 deletion
components/CustomDropDown.js
+
0
−
1
View file @
8b6c05b8
import
React
,
{
useState
}
from
"
react
"
;
import
DropDownPicker
from
"
react-native-dropdown-picker
"
;
import
{
View
,
Platform
}
from
"
react-native
"
;
const
CustomDropDown
=
(
props
)
=>
{
const
[
value
,
setValue
]
=
useState
(
props
.
defaultValue
);
...
...
This diff is collapsed.
Click to expand it.
redux/actions/UserActions.js
+
12
−
0
View file @
8b6c05b8
...
...
@@ -144,6 +144,13 @@ export const onEditEmail = (props) => {
};
};
/**
* Updates the list of salamanders in manage salamanders after an action is performed
*
* @param {Bool} setShowIndicator handles the spinner logic
* @param {String} locationValue contains the value of the current location where the user is managing salamanders
* @returns async dispatch from redux
*/
export
const
updateSalamanderList
=
({
setShowIndicator
,
locationValue
})
=>
{
return
async
(
dispatch
)
=>
{
try
{
...
...
@@ -166,6 +173,11 @@ export const updateSalamanderList = ({ setShowIndicator, locationValue }) => {
};
};
/**
* Removes the salamander list in memory when done with managing salamanders to reset the feature.
*
* @returns async dispatch from redux
*/
export
const
removeSalamanderList
=
(
props
)
=>
{
return
async
(
dispatch
)
=>
{
try
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment