Skip to content

Commit

Permalink
fix(types): add CompatibleDevice type
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-ledger committed Nov 8, 2023
1 parent 5152f77 commit 3bb71b8
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions libs/ledgerjs/packages/types-live/src/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,15 @@ export type Feature_NewsfeedPage = Feature<{
whitelistedLocales: string[];
}>;

export type CompatibleDevice = {
available: boolean;
comingSoon: boolean;
name: string;
};

export type Feature_ProtectServicesMobile = Feature<{
deeplink: string;
compatibleDevices: Array<{
available: boolean;
comingSoon: boolean;
name: string;
}>;
compatibleDevices: CompatibleDevice[];
onboardingRestore: {
restoreInfoDrawer: {
enabled: boolean;
Expand Down Expand Up @@ -331,11 +333,7 @@ export type Feature_ProtectServicesDesktop = Feature<{
availableOnDesktop: boolean;
openRecoverFromSidebar: boolean;
discoverTheBenefitsLink: string;
compatibleDevices: Array<{
available: boolean;
comingSoon: boolean;
name: string;
}>;
compatibleDevices: CompatibleDevice[];
onboardingRestore: {
restoreInfoDrawer: {
enabled: boolean;
Expand Down

0 comments on commit 3bb71b8

Please sign in to comment.