-
Notifications
You must be signed in to change notification settings - Fork 67
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
feat: fetch country and states list from S3 #916
base: main
Are you sure you want to change the base?
Conversation
/> | ||
| None => React.null | ||
}} | ||
{stateNames->Array.length > 0 |
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.
use renderif
/> | ||
| None => React.null | ||
}} | ||
{stateNames->Array.length > 0 |
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.
use render if
/> | ||
| None => React.null | ||
} | ||
stateNames->Array.length > 0 |
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.
use render if
let res = await AddressPaymentInput.importStates("./../States.json") | ||
setStatesJson(_ => res.states) | ||
let dict = Utils.getDictFromJson(stateList) | ||
if dict->Js.Dict.entries->Array.length !== 0 { |
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.
if dict->Js.Dict.entries->Array.length !== 0 { | |
if !(dict->Dict.empty()) { |
Type of Change
Description
fetch country and stateslist from S3
How did you test it?
I have tested in local React Demo app.


Screen.Recording.2025-02-24.at.7.03.34.PM.mov
Checklist
npm run re:build