Skip to content

Commit

Permalink
fix(ts): remove constant enum (#4261)
Browse files Browse the repository at this point in the history
  • Loading branch information
JFrankfurt committed Aug 3, 2022
1 parent ed5902a commit d41e3c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/AmplitudeAnalytics/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export enum SWAP_PRICE_UPDATE_USER_RESPONSE {
/**
* Known pages in the app. Highest order context.
*/
export const enum PageName {
export enum PageName {
EXPLORE_PAGE = 'explore-page',
POOL_PAGE = 'pool-page',
SWAP_PAGE = 'swap-page',
Expand All @@ -90,14 +90,14 @@ export const enum PageName {
* eg a `back` button in a modal will have the same `element`,
* but a different `section`.
*/
export const enum SectionName {
export enum SectionName {
CURRENCY_INPUT_PANEL = 'swap-currency-input',
CURRENCY_OUTPUT_PANEL = 'swap-currency-output',
// alphabetize additional section names.
}

/** Known modals for analytics purposes. */
export const enum ModalName {
export enum ModalName {
CONFIRM_SWAP = 'confirm-swap-modal',
TOKEN_SELECTOR = 'token-selector-modal',
// alphabetize additional modal names.
Expand All @@ -107,7 +107,7 @@ export const enum ModalName {
* Known element names for analytics purposes.
* Use to identify low-level components given a TraceContext
*/
export const enum ElementName {
export enum ElementName {
AUTOROUTER_VISUALIZATION_ROW = 'expandable-autorouter-visualization-row',
COMMON_BASES_CURRENCY_BUTTON = 'common-bases-currency-button',
CONFIRM_SWAP_BUTTON = 'confirm-swap-or-send',
Expand Down

1 comment on commit d41e3c0

@vercel
Copy link

@vercel vercel bot commented on d41e3c0 Aug 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

interface – ./

interface-uniswap.vercel.app
interface-git-main-uniswap.vercel.app

Please sign in to comment.