aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-06-30 02:56:31 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-06-30 02:56:31 +0800
commitddec01e6c1d9cfeaf5b01278b1b796644705433b (patch)
treeecc0d30619583a86957eaa2adc5bea7f3e6f1c2a /packages/website
parent03bc7bb935c71106dd3c5b577d08ca3b12977e5f (diff)
downloaddexon-sol-tools-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar
dexon-sol-tools-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.gz
dexon-sol-tools-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.bz2
dexon-sol-tools-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.lz
dexon-sol-tools-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.xz
dexon-sol-tools-ddec01e6c1d9cfeaf5b01278b1b796644705433b.tar.zst
dexon-sol-tools-ddec01e6c1d9cfeaf5b01278b1b796644705433b.zip
Change function to a const
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/components/ui/account_connection.tsx4
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;
}
-}
+};