Change function to a const
This commit is contained in:
		@@ -27,7 +27,7 @@ export const AccountConnection: React.StatelessComponent<AccountConnectionProps>
 | 
				
			|||||||
    );
 | 
					    );
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function getInjectedProviderColor(accountState: AccountState): string {
 | 
					const getInjectedProviderColor = (accountState: AccountState) => {
 | 
				
			||||||
    switch (accountState) {
 | 
					    switch (accountState) {
 | 
				
			||||||
        case AccountState.Ready:
 | 
					        case AccountState.Ready:
 | 
				
			||||||
            return colors.limeGreen;
 | 
					            return colors.limeGreen;
 | 
				
			||||||
@@ -37,4 +37,4 @@ function getInjectedProviderColor(accountState: AccountState): string {
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
            return colors.red;
 | 
					            return colors.red;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user