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: Leave Federation #353

Merged
merged 7 commits into from
Jan 25, 2024
Merged

feat: Leave Federation #353

merged 7 commits into from
Jan 25, 2024

Conversation

Kodylow
Copy link
Member

@Kodylow Kodylow commented Jan 21, 2024

Needs design input and I think we should use toasts for errors we've got that whole section in the top right that's blank rn.

Need design input on how to view multiple federations too, think we're at the point we can start implementing that

@Kodylow Kodylow requested a review from a team as a code owner January 21, 2024 20:19
children,
}: FedNameCardProps) {
const [isOpen, setIsOpen] = React.useState(false);
Copy link
Collaborator

@okjodom okjodom Jan 23, 2024

Choose a reason for hiding this comment

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

nit: we should use descriptive state names like confirmLeaveFed

children,
}: FedNameCardProps) {
const [isOpen, setIsOpen] = React.useState(false);
const [errorMessage, setErrorMessage] = React.useState<string | null>(null);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: import-style: we should just import react fns at the top

} else {
throw new Error('Federation ID is null');
}
} catch (error: any) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

lint: catch (error: unknown)

Copy link
Collaborator

Choose a reason for hiding this comment

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

or just leave out the type

Copy link
Collaborator

@okjodom okjodom left a comment

Choose a reason for hiding this comment

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

aside from nits and lints, this looks good to me.
great because gateway admins can now quickly leave fed

Need design input on how to view multiple federations too, think we're at the point we can start implementing that

let's track separately: #356

@Kodylow
Copy link
Member Author

Kodylow commented Jan 24, 2024

Updated UI:

image image image

@okjodom okjodom merged commit 6560285 into fedimint:master Jan 25, 2024
1 check passed
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.

None yet

2 participants