-
-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Tokenized filter option #112
Feature: Tokenized filter option #112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor suggestion, but not essential.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've suggested a couple of code simplifications that take advantage of the recent change.
src/components/Filter.js
Outdated
<GSInputLabel text="Tokenization Status" /> | ||
<TextField | ||
select | ||
value={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be simplified to value={tokenId}
.
src/components/Filter.js
Outdated
: tokenizationStates.NOT_TOKENIZED | ||
} | ||
onChange={(e) => { | ||
setTokenId( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be simplified to setTokenId(e.target.value)
.
src/components/FilterTop.js
Outdated
<TextField | ||
select | ||
label="Token Status" | ||
value={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be simplified to value={tokenId}
.
src/components/FilterTop.js
Outdated
: tokenizationStates.NOT_TOKENIZED | ||
} | ||
onChange={(e) => { | ||
setTokenId( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be simplified to setTokenId(e.target.value)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh whoops, thanks for catching these!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cracking work, thanks @VLuisa!
Resolves #53
Add 'Tokenization Status' filter to Verify and Capture pages with options to filter by 'All', 'Tokenized', and 'Not Tokenized'.