-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(redux-devtools-inspector-monitor): add option to sort state t…
…ree alphabetically and/or disable collections
- Loading branch information
Kent Kwee
committed
Nov 2, 2022
1 parent
cc5d7b7
commit 3f55afa
Showing
8 changed files
with
98 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'remotedev-redux-devtools-extension': minor | ||
'@redux-devtools/inspector-monitor': minor | ||
--- | ||
|
||
Option to sort State Tree keys alphabetically | ||
Option to disable collapsing of object keys |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from 'react'; | ||
import { OptionsProps } from './Options'; | ||
|
||
export default ({ options, saveOption }: OptionsProps) => { | ||
return ( | ||
<fieldset className="option-group"> | ||
<legend className="option-group__title">State Tree</legend> | ||
|
||
<div className="option option_type_checkbox"> | ||
<input | ||
className="option__element" | ||
id="sortStateTreeAlphabetically" | ||
type="checkbox" | ||
checked={options.sortStateTreeAlphabetically} | ||
onChange={(e) => | ||
saveOption('sortStateTreeAlphabetically', e.target.checked) | ||
} | ||
/> | ||
<label className="option__label" htmlFor="sortStateTreeAlphabetically"> | ||
Sort State Tree alphabetically | ||
</label> | ||
<div className="option__hint"> | ||
Property keys are sorted alphabetically | ||
</div> | ||
</div> | ||
|
||
<div className="option option_type_checkbox"> | ||
<input | ||
className="option__element" | ||
id="disableStateTreeCollection" | ||
type="checkbox" | ||
checked={options.disableStateTreeCollection} | ||
onChange={(e) => | ||
saveOption('disableStateTreeCollection', e.target.checked) | ||
} | ||
/> | ||
<label className="option__label" htmlFor="disableStateTreeCollection"> | ||
Disable State Tree Collection | ||
</label> | ||
<div className="option__hint">Prevents collapsing of object keys</div> | ||
</div> | ||
</fieldset> | ||
); | ||
}; |
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
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.