Skip to content

Commit

Permalink
fix: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
yasha-black committed Mar 24, 2023
1 parent 0669f6f commit 2e06665
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@spectrumlabs/analytics",
"description": "Amplitude analytics lib for Spectrum Finance dApps.",
"version": "1.0.16",
"version": "1.0.18",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down
6 changes: 1 addition & 5 deletions src/events/deposit/events.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AmmPoolProps, ErrorProps, TokenProps } from '../generalProps';
import { ErrorProps } from '../generalProps';
import { DepositProps } from './props';

export type DepositEvents = {
Expand All @@ -8,12 +8,8 @@ export type DepositEvents = {
'Deposit Signed Success': DepositProps;
'Deposit Signed Error': DepositProps & ErrorProps;
'Deposit Cancel Sign': DepositProps;
'Deposit Select X': TokenProps;
'Deposit Select Y': TokenProps;
'Deposit Click 25%': undefined;
'Deposit Click 50%': undefined;
'Deposit Click 75%': undefined;
'Deposit Click 100%': undefined;
'Deposit Click Create Pool': undefined;
'Deposit Select Pool': AmmPoolProps;
};
1 change: 0 additions & 1 deletion src/events/generalEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export type GeneralEvents = {
'Cookies Rejected': undefined;

'Select Network': NetworkProps;

'Select Theme': ThemeProps;
'Select Locale': LocaleProps;

Expand Down
4 changes: 4 additions & 0 deletions src/events/generalProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@ export type NetworkProps = {
export type ThemeProps = {
theme: 'light' | 'dark' | 'system';
};

export type AnalyticsTrace = {
elementLocation: ElementLocationProps['element_location'];
};

0 comments on commit 2e06665

Please sign in to comment.