From 545a5c32a50eb5a4fbdd123dc9055e35e06d035b Mon Sep 17 00:00:00 2001 From: Kamil Pyszkowski Date: Thu, 26 Oct 2023 15:35:06 +0200 Subject: [PATCH] Resolve Prettier issues --- src/enums/env.ts | 2 +- src/hooks/useFetchExternalPoolData.ts | 2 +- src/static/icons/tokenIconMap.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/enums/env.ts b/src/enums/env.ts index 5e60a1208..3feda0e1f 100644 --- a/src/enums/env.ts +++ b/src/enums/env.ts @@ -19,7 +19,7 @@ const envVariables = [ "WALLET_CONNECT_PROJECT_ID", ] as const -export type EnvVariableKey = typeof envVariables[number] +export type EnvVariableKey = (typeof envVariables)[number] // In order not to break the previous enum API, so using eg. // `EnvVariable.ETH_HOSTNAME_HTTP` is still valid. diff --git a/src/hooks/useFetchExternalPoolData.ts b/src/hooks/useFetchExternalPoolData.ts index 37e589c8f..8b326621b 100644 --- a/src/hooks/useFetchExternalPoolData.ts +++ b/src/hooks/useFetchExternalPoolData.ts @@ -16,7 +16,7 @@ const pools = { } as const type ExternalPool = keyof typeof pools -type ExternalPoolId = typeof pools[T][number] +type ExternalPoolId = (typeof pools)[T][number] const fetchCurvePool: ( poolId: ExternalPoolId<"curve"> diff --git a/src/static/icons/tokenIconMap.ts b/src/static/icons/tokenIconMap.ts index 3e0c4d042..c725551a0 100644 --- a/src/static/icons/tokenIconMap.ts +++ b/src/static/icons/tokenIconMap.ts @@ -9,7 +9,7 @@ const tokenIcons = [ "T_CIRCLE_BRAND", ] as const -export type TokenIcon = typeof tokenIcons[number] +export type TokenIcon = (typeof tokenIcons)[number] const tokenIconMap: Record = { KEEP_CIRCLE_BRAND: KeepCircleBrand,