Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new educational sections in english #2704

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,748 changes: 1,748 additions & 0 deletions __tests__/utils/earns-utils.test.ts

Large diffs are not rendered by default.

37 changes: 0 additions & 37 deletions app/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -789,8 +789,6 @@ export type Mutation = {
readonly userPhoneDelete: UserPhoneDeletePayload;
readonly userPhoneRegistrationInitiate: SuccessPayload;
readonly userPhoneRegistrationValidate: UserPhoneRegistrationValidatePayload;
/** @deprecated Use QuizCompletedMutation instead */
readonly userQuizQuestionUpdateCompleted: UserQuizQuestionUpdateCompletedPayload;
readonly userTotpDelete: UserTotpDeletePayload;
readonly userTotpRegistrationInitiate: UserTotpRegistrationInitiatePayload;
readonly userTotpRegistrationValidate: UserTotpRegistrationValidatePayload;
Expand Down Expand Up @@ -1010,11 +1008,6 @@ export type MutationUserPhoneRegistrationValidateArgs = {
};


export type MutationUserQuizQuestionUpdateCompletedArgs = {
input: UserQuizQuestionUpdateCompletedInput;
};


export type MutationUserTotpDeleteArgs = {
input: UserTotpDeleteInput;
};
Expand Down Expand Up @@ -1269,8 +1262,6 @@ export type Query = {
readonly __typename: 'Query';
readonly accountDefaultWallet: PublicWallet;
readonly beta: Scalars['Boolean']['output'];
/** @deprecated Deprecated in favor of realtimePrice */
readonly btcPrice?: Maybe<Price>;
readonly btcPriceList?: Maybe<ReadonlyArray<Maybe<PricePoint>>>;
readonly businessMapMarkers?: Maybe<ReadonlyArray<Maybe<MapMarker>>>;
readonly colorScheme: Scalars['String']['output'];
Expand Down Expand Up @@ -1306,11 +1297,6 @@ export type QueryAccountDefaultWalletArgs = {
};


export type QueryBtcPriceArgs = {
currency?: Scalars['DisplayCurrency']['input'];
};


export type QueryBtcPriceListArgs = {
range: PriceGraphRange;
};
Expand Down Expand Up @@ -1731,16 +1717,6 @@ export type UserQuizQuestion = {
readonly question: QuizQuestion;
};

export type UserQuizQuestionUpdateCompletedInput = {
readonly id: Scalars['ID']['input'];
};

export type UserQuizQuestionUpdateCompletedPayload = {
readonly __typename: 'UserQuizQuestionUpdateCompletedPayload';
readonly errors: ReadonlyArray<Error>;
readonly userQuizQuestion?: Maybe<UserQuizQuestion>;
};

export type UserTotpDeleteInput = {
readonly authToken: Scalars['AuthToken']['input'];
};
Expand Down Expand Up @@ -6843,8 +6819,6 @@ export type ResolversTypes = {
UserPhoneRegistrationValidateInput: UserPhoneRegistrationValidateInput;
UserPhoneRegistrationValidatePayload: ResolverTypeWrapper<UserPhoneRegistrationValidatePayload>;
UserQuizQuestion: ResolverTypeWrapper<UserQuizQuestion>;
UserQuizQuestionUpdateCompletedInput: UserQuizQuestionUpdateCompletedInput;
UserQuizQuestionUpdateCompletedPayload: ResolverTypeWrapper<UserQuizQuestionUpdateCompletedPayload>;
UserTotpDeleteInput: UserTotpDeleteInput;
UserTotpDeletePayload: ResolverTypeWrapper<UserTotpDeletePayload>;
UserTotpRegistrationInitiateInput: UserTotpRegistrationInitiateInput;
Expand Down Expand Up @@ -7038,8 +7012,6 @@ export type ResolversParentTypes = {
UserPhoneRegistrationValidateInput: UserPhoneRegistrationValidateInput;
UserPhoneRegistrationValidatePayload: UserPhoneRegistrationValidatePayload;
UserQuizQuestion: UserQuizQuestion;
UserQuizQuestionUpdateCompletedInput: UserQuizQuestionUpdateCompletedInput;
UserQuizQuestionUpdateCompletedPayload: UserQuizQuestionUpdateCompletedPayload;
UserTotpDeleteInput: UserTotpDeleteInput;
UserTotpDeletePayload: UserTotpDeletePayload;
UserTotpRegistrationInitiateInput: UserTotpRegistrationInitiateInput;
Expand Down Expand Up @@ -7486,7 +7458,6 @@ export type MutationResolvers<ContextType = any, ParentType extends ResolversPar
userPhoneDelete?: Resolver<ResolversTypes['UserPhoneDeletePayload'], ParentType, ContextType>;
userPhoneRegistrationInitiate?: Resolver<ResolversTypes['SuccessPayload'], ParentType, ContextType, RequireFields<MutationUserPhoneRegistrationInitiateArgs, 'input'>>;
userPhoneRegistrationValidate?: Resolver<ResolversTypes['UserPhoneRegistrationValidatePayload'], ParentType, ContextType, RequireFields<MutationUserPhoneRegistrationValidateArgs, 'input'>>;
userQuizQuestionUpdateCompleted?: Resolver<ResolversTypes['UserQuizQuestionUpdateCompletedPayload'], ParentType, ContextType, RequireFields<MutationUserQuizQuestionUpdateCompletedArgs, 'input'>>;
userTotpDelete?: Resolver<ResolversTypes['UserTotpDeletePayload'], ParentType, ContextType, RequireFields<MutationUserTotpDeleteArgs, 'input'>>;
userTotpRegistrationInitiate?: Resolver<ResolversTypes['UserTotpRegistrationInitiatePayload'], ParentType, ContextType, RequireFields<MutationUserTotpRegistrationInitiateArgs, 'input'>>;
userTotpRegistrationValidate?: Resolver<ResolversTypes['UserTotpRegistrationValidatePayload'], ParentType, ContextType, RequireFields<MutationUserTotpRegistrationValidateArgs, 'input'>>;
Expand Down Expand Up @@ -7641,7 +7612,6 @@ export type PublicWalletResolvers<ContextType = any, ParentType extends Resolver
export type QueryResolvers<ContextType = any, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = {
accountDefaultWallet?: Resolver<ResolversTypes['PublicWallet'], ParentType, ContextType, RequireFields<QueryAccountDefaultWalletArgs, 'username'>>;
beta?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
btcPrice?: Resolver<Maybe<ResolversTypes['Price']>, ParentType, ContextType, RequireFields<QueryBtcPriceArgs, 'currency'>>;
btcPriceList?: Resolver<Maybe<ReadonlyArray<Maybe<ResolversTypes['PricePoint']>>>, ParentType, ContextType, RequireFields<QueryBtcPriceListArgs, 'range'>>;
businessMapMarkers?: Resolver<Maybe<ReadonlyArray<Maybe<ResolversTypes['MapMarker']>>>, ParentType, ContextType>;
colorScheme?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
Expand Down Expand Up @@ -7898,12 +7868,6 @@ export type UserQuizQuestionResolvers<ContextType = any, ParentType extends Reso
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type UserQuizQuestionUpdateCompletedPayloadResolvers<ContextType = any, ParentType extends ResolversParentTypes['UserQuizQuestionUpdateCompletedPayload'] = ResolversParentTypes['UserQuizQuestionUpdateCompletedPayload']> = {
errors?: Resolver<ReadonlyArray<ResolversTypes['Error']>, ParentType, ContextType>;
userQuizQuestion?: Resolver<Maybe<ResolversTypes['UserQuizQuestion']>, ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type UserTotpDeletePayloadResolvers<ContextType = any, ParentType extends ResolversParentTypes['UserTotpDeletePayload'] = ResolversParentTypes['UserTotpDeletePayload']> = {
errors?: Resolver<ReadonlyArray<ResolversTypes['Error']>, ParentType, ContextType>;
me?: Resolver<Maybe<ResolversTypes['User']>, ParentType, ContextType>;
Expand Down Expand Up @@ -8093,7 +8057,6 @@ export type Resolvers<ContextType = any> = {
UserPhoneDeletePayload?: UserPhoneDeletePayloadResolvers<ContextType>;
UserPhoneRegistrationValidatePayload?: UserPhoneRegistrationValidatePayloadResolvers<ContextType>;
UserQuizQuestion?: UserQuizQuestionResolvers<ContextType>;
UserQuizQuestionUpdateCompletedPayload?: UserQuizQuestionUpdateCompletedPayloadResolvers<ContextType>;
UserTotpDeletePayload?: UserTotpDeletePayloadResolvers<ContextType>;
UserTotpRegistrationInitiatePayload?: UserTotpRegistrationInitiatePayloadResolvers<ContextType>;
UserTotpRegistrationValidatePayload?: UserTotpRegistrationValidatePayloadResolvers<ContextType>;
Expand Down
Loading
Loading