-
Notifications
You must be signed in to change notification settings - Fork 15
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
CreateSubOrgV3 #107
CreateSubOrgV3 #107
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
1d10559
to
0c2c0e6
Compare
console.error(e); | ||
|
||
res.status(500).json({ | ||
message: "Something went wrong.", |
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.
interpolate e?
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.
will leave it out and just handle on the server side for now. don't feel too strongly either way 🤷
await axios.post("/api/proxyRequest", signedRequest); | ||
|
||
alert(`Hooray! Key ${data.privateKeyName} created.`); | ||
await sleep(1000); // alternative would be to poll the activity itself repeatedly | ||
await getPrivateKeys(subOrgId); |
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.
A bit messy but I get why that's the simplest for now. I'm onboard 👍
const privateKeysTable = ( | ||
<div className={styles.baseTable}> | ||
<table className={styles.table}> | ||
<tr> | ||
<th className={styles.th}>Name</th> | ||
<th className={styles.th}>Address</th> | ||
</tr> | ||
{privateKeys.map((val, key) => { | ||
return ( | ||
<tr key={key}> | ||
<td className={styles.td}>{val.privateKeyName}</td> | ||
<td className={styles.td}>{val.privateKeyAddress}</td> | ||
</tr> | ||
); | ||
})} | ||
</table> | ||
</div> | ||
); | ||
|
||
const privateKeyElements = privateKeys.map((pk) => ( | ||
<li key={pk.privateKeyId} className={styles.prompt}> | ||
{pk.privateKeyAddress} | ||
</li> | ||
)); |
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 demo is getting fancier and fancier! 😍
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.
Overall looks good to me! Let's wait until the next deploy, then we should be good to merge this! 🙌
31af670
to
acce4a1
Compare
acce4a1
to
af661c9
Compare
19d98c0
to
d8586f1
Compare
Summary & Motivation
How I Tested These Changes
Screen.Recording.2023-08-30.at.12.59.01.PM.mov