-
Notifications
You must be signed in to change notification settings - Fork 9
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
[#220] drep list #559
[#220] drep list #559
Conversation
b42022a
to
1ab56a2
Compare
508df0e
to
51bee96
Compare
); | ||
|
||
const getBgColor = (status: Status): string => { | ||
switch (status) { |
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.
Insead of switch
{
Active:successGreen.c200,
Inactive:cyan.c100,
Retired:errorRed.c100
}[status]
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.
the same for text color
> | ||
{t("delegate")} | ||
</Button> | ||
{!isConnected |
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.
is it not the same label ?, but just different action ?
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.
left a comment on figma
isConnected={isConnected} | ||
isSelected={currentDelegation === "drep_always_abstain"} | ||
onClickDelegate={() => delegate("abstain")} | ||
onClickInfo={() => { }} |
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.
what Info should do ?, can you leave commet ?
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.
left a comment on figma
addSuccessAlert(t("alerts.delegate.success")); | ||
} | ||
} catch (error) { | ||
addErrorAlert(t("alerts.delegate.failed")); |
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.
add sentry capture expction
- refactor determining StatusPill colors - add Sentry.captureException on delegate error
List of changes
Checklist