Improve typings for AuthFlow and mark some future TODOs

This commit is contained in:
ErickSkrauch
2024-08-28 13:07:23 +02:00
parent 12f5e711c4
commit ba2876e534
23 changed files with 148 additions and 156 deletions

View File

@@ -180,8 +180,6 @@ class PanelTransition extends React.PureComponent<Props, State> {
if (this.props.children) {
return this.props.children;
} else if (!Title || !Body || !Footer || !Links) {
throw new Error('Title, Body, Footer and Links are required');
}
const {

View File

@@ -182,7 +182,7 @@ export function register({
);
}
export function activate({ key = '' }: { key: string }): AppAction<Promise<Account>> {
export function activate(key: string): AppAction<Promise<Account>> {
return wrapInLoader((dispatch) =>
activateEndpoint(key)
.then(authHandler(dispatch))