mirror of
				https://github.com/elyby/accounts-frontend.git
				synced 2025-05-31 14:11:58 +05:30 
			
		
		
		
	Improve typings for AuthFlow and mark some future TODOs
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
@@ -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))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user