Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
React Redux Starter Code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
cpilkington3
React Redux Starter Code
Commits
96e681de
Commit
96e681de
authored
Sep 3, 2020
by
[cpilkington3]
Browse files
Options
Downloads
Patches
Plain Diff
Made restart a prop
parent
9a921068
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
minimal-app/src/app.js
+1
-1
1 addition, 1 deletion
minimal-app/src/app.js
minimal-app/src/features/invisibleMaze/invisibleMaze.js
+8
-4
8 additions, 4 deletions
minimal-app/src/features/invisibleMaze/invisibleMaze.js
with
9 additions
and
5 deletions
minimal-app/src/app.js
+
1
−
1
View file @
96e681de
...
...
@@ -7,7 +7,7 @@ export function App() {
return
(
<>
<
Route
exact
path
=
{
'
/
'
}
>
<
InvisibleMaze
/>
<
InvisibleMaze
reset
=
{
"
Reset Maze
"
}
/
>
<
/Route
>
<
/
>
);
...
...
This diff is collapsed.
Click to expand it.
minimal-app/src/features/invisibleMaze/invisibleMaze.js
+
8
−
4
View file @
96e681de
...
...
@@ -17,7 +17,7 @@ import {
setButtonThree
,
}
from
'
./invisibleMazeSlice.js
'
;
export
function
InvisibleMaze
()
{
export
function
InvisibleMaze
(
props
)
{
const
stepOne
=
useSelector
(
selectStepOne
);
const
stepTwo
=
useSelector
(
selectStepTwo
);
const
stepThree
=
useSelector
(
selectStepThree
);
...
...
@@ -82,9 +82,13 @@ export function InvisibleMaze() {
<
/div
>
<
div
className
=
{
styles
.
controlPanel
}
>
<
button
className
=
{
styles
.
reset
}
onClick
=
{
resetMaze
}
>
{
"
Reset Maze
"
}
{
props
.
reset
}:
&
nbsp
;
<
/button
>
<
/div
>
<
/main>
);
}
InvisibleMaze
.
propTypes
=
{
reset
:
PropTypes
.
string
.
isRequired
,
};
\ No newline at end of file
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