Skip to content

Commit

Permalink
Merge pull request #64 from suisin-deriv/suisin/74178/ts_migration_se…
Browse files Browse the repository at this point in the history
…lf_exclusion_context

refactor: ts migration for self-exclusion-context
  • Loading branch information
shayan-deriv committed Dec 25, 2022
2 parents 677c6b7 + ee4f548 commit 06b7f33
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { FormikValues } from 'formik';
import * as React from 'react';

type TSelfExclusionContext = {
footer_ref?: React.RefObject<HTMLElement>;
goToConfirm?: () => void;
toggleArticle?: () => void;
is_app_settings?: boolean;
is_wrapper_bypassed?: boolean;
is_eu?: boolean;
is_uk?: boolean;
backToReview?: () => void;
backFromConfirmLimits?: () => void;
currency?: string;
currency_display?: string;
exclusion_texts?: string;
state?: FormikValues;
};

const SelfExclusionContext = React.createContext<TSelfExclusionContext>({});

export default SelfExclusionContext;

0 comments on commit 06b7f33

Please sign in to comment.