Change function to a const

This commit is contained in:
Brandon Millman
2018-06-29 11:56:31 -07:00
parent 03bc7bb935
commit ddec01e6c1

View File

@@ -27,7 +27,7 @@ export const AccountConnection: React.StatelessComponent<AccountConnectionProps>
);
};
function getInjectedProviderColor(accountState: AccountState): string {
const getInjectedProviderColor = (accountState: AccountState) => {
switch (accountState) {
case AccountState.Ready:
return colors.limeGreen;
@@ -37,4 +37,4 @@ function getInjectedProviderColor(accountState: AccountState): string {
default:
return colors.red;
}
}
};