-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
children, | ||
}: FedNameCardProps) { | ||
const [isOpen, setIsOpen] = React.useState(false); |
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.
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); |
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.
nit: import-style: we should just import react fns at the top
} else { | ||
throw new Error('Federation ID is null'); | ||
} | ||
} catch (error: any) { |
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.
lint: catch (error: unknown)
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.
or just leave out the type
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.
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
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