diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-30 02:56:31 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-30 02:56:31 +0800 |
commit | ddec01e6c1d9cfeaf5b01278b1b796644705433b (patch) | |
tree | ecc0d30619583a86957eaa2adc5bea7f3e6f1c2a /packages/website/ts | |
parent | 03bc7bb935c71106dd3c5b577d08ca3b12977e5f (diff) | |
download | dexon-0x-contracts-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar dexon-0x-contracts-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.gz dexon-0x-contracts-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.bz2 dexon-0x-contracts-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.lz dexon-0x-contracts-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.xz dexon-0x-contracts-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.zst dexon-0x-contracts-ddec01e6c1d9cfeaf5b01278b1b796644705433b.zip |
Change function to a const
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/components/ui/account_connection.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/ui/account_connection.tsx b/packages/website/ts/components/ui/account_connection.tsx index 0f61ecde4..6d0b90922 100644 --- a/packages/website/ts/components/ui/account_connection.tsx +++ b/packages/website/ts/components/ui/account_connection.tsx @@ -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; } -} +}; |