-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new-logic 1/X: Redux, immutable Logic (#156)
* Make Logic immutable * Fix silent realms * Refactor gratitude crystals * Restructuring * Actually use potentialBannedLocations * Fix errors after rebase * Triforce adjustments * Review feedback * I guess nullish coalescing exists * Remove some code that is not needed until settings can be changed * One small cleanup
- Loading branch information
1 parent
0adcdec
commit 0b82c1c
Showing
57 changed files
with
1,694 additions
and
1,476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
export default function BasicCounters({ | ||
locationsChecked, | ||
totalAccessible, | ||
checksRemaining, | ||
}: { | ||
locationsChecked: number; | ||
totalAccessible: number; | ||
checksRemaining: number; | ||
}) { | ||
import { useSelector } from 'react-redux'; | ||
import { totalCountersSelector } from './selectors/LogicOutput'; | ||
|
||
export default function BasicCounters() { | ||
const totalCounters = useSelector(totalCountersSelector); | ||
return ( | ||
<div className="Counters"> | ||
<p>{`Locations Checked: ${locationsChecked}`}</p> | ||
<p>{`Locations Accessible: ${totalAccessible}`}</p> | ||
<p>{`Locations Remaining: ${checksRemaining}`}</p> | ||
<p>{`Locations Checked: ${totalCounters.numChecked}`}</p> | ||
<p>{`Locations Accessible: ${totalCounters.numAccessible}`}</p> | ||
<p>{`Locations Remaining: ${totalCounters.numRemaining}`}</p> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.