Skip to content
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

Merged
merged 5 commits into from
Jun 12, 2021

Conversation

VLuisa
Copy link
Contributor

@VLuisa VLuisa commented Jun 10, 2021

Resolves #53

Add 'Tokenization Status' filter to Verify and Capture pages with options to filter by 'All', 'Tokenized', and 'Not Tokenized'.

Copy link
Collaborator

@nmcharlton nmcharlton left a 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.

src/common/variables.js Show resolved Hide resolved
Copy link
Collaborator

@nmcharlton nmcharlton left a 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.

<GSInputLabel text="Tokenization Status" />
<TextField
select
value={
Copy link
Collaborator

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}.

: tokenizationStates.NOT_TOKENIZED
}
onChange={(e) => {
setTokenId(
Copy link
Collaborator

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).

<TextField
select
label="Token Status"
value={
Copy link
Collaborator

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}.

: tokenizationStates.NOT_TOKENIZED
}
onChange={(e) => {
setTokenId(
Copy link
Collaborator

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).

Copy link
Contributor Author

@VLuisa VLuisa Jun 12, 2021

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!

Copy link
Collaborator

@nmcharlton nmcharlton left a 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!

@nmcharlton nmcharlton merged commit 17742b2 into Greenstand:master Jun 12, 2021
@VLuisa VLuisa deleted the feature/tokenized-filter-option branch June 12, 2021 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Tokenized to Verify/Trees filter and Tree Detail
2 participants