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

feat(vote credit): add card, modal and row components #1022

Merged
merged 1 commit into from
May 3, 2022

Conversation

VERZUOL1
Copy link
Collaborator

@VERZUOL1 VERZUOL1 commented May 3, 2022

No description provided.

daoName: dao.name || dao.id,
daoFunds: dao.totalDaoFunds,
});
}, [dao.id, dao.name, dao.totalDaoFunds, showModal]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason not to destruct it and use id, name, etc... We are duplicating dao all the time.

capitalize
className={styles.confirmButton}
variant="secondary"
onClick={() => onClose()}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just pass onClose?

Cancel
</Button>
<Button capitalize type="submit" className={styles.confirmButton}>
Submit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we leave some comment to remember about localisation? Maybe we should introduce some TODO at the top of the unlocalised files?

Comment on lines +30 to +32
(async () => {
await getDaosList();
})();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there sense to wait till we get daos? Will we face some "race condition" if we remove await?

Comment on lines +68 to +69
const publicKey = await nearService?.getPublicKey();
const signature = await nearService?.getSignature();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a getPublicKeyAndSignature method to get both)

@VERZUOL1 VERZUOL1 merged commit 0b2aa12 into develop May 3, 2022
@VERZUOL1 VERZUOL1 deleted the feature/vote-credit branch May 3, 2022 16:40
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.

3 participants