aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-13 09:30:28 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-13 09:30:28 +0800
commit01b36b494996c641a3cb5bd3fd894624a8dad210 (patch)
treeeb7ab9dc21faf515807f1be29839f6cc3580961d /packages/instant/src/components
parent711b307e6c56457647a98c6d76725aa90ac0d53e (diff)
downloaddexon-sol-tools-01b36b494996c641a3cb5bd3fd894624a8dad210.tar
dexon-sol-tools-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.gz
dexon-sol-tools-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.bz2
dexon-sol-tools-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.lz
dexon-sol-tools-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.xz
dexon-sol-tools-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.zst
dexon-sol-tools-01b36b494996c641a3cb5bd3fd894624a8dad210.zip
fix: remove requirement of default case in all switch statements
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r--packages/instant/src/components/payment_method.tsx4
-rw-r--r--packages/instant/src/components/scaling_input.tsx2
-rw-r--r--packages/instant/src/components/standard_sliding_panel.tsx2
3 files changed, 1 insertions, 7 deletions
diff --git a/packages/instant/src/components/payment_method.tsx b/packages/instant/src/components/payment_method.tsx
index 25c879519..49ec22164 100644
--- a/packages/instant/src/components/payment_method.tsx
+++ b/packages/instant/src/components/payment_method.tsx
@@ -51,8 +51,6 @@ export class PaymentMethod extends React.Component<PaymentMethodProps> {
return 'connect your wallet';
case AccountState.Ready:
return 'payment method';
- default:
- return 'payment method';
}
};
private readonly _renderTitleLabel = (): React.ReactNode => {
@@ -104,8 +102,6 @@ export class PaymentMethod extends React.Component<PaymentMethodProps> {
network={network}
/>
);
- default:
- return null;
}
};
}
diff --git a/packages/instant/src/components/scaling_input.tsx b/packages/instant/src/components/scaling_input.tsx
index 1abadb78b..e1599a316 100644
--- a/packages/instant/src/components/scaling_input.tsx
+++ b/packages/instant/src/components/scaling_input.tsx
@@ -156,8 +156,6 @@ export class ScalingInput extends React.Component<ScalingInputProps, ScalingInpu
return `${width}px`;
}
return `${textLengthThreshold}ch`;
- default:
- return '1ch';
}
};
private readonly _calculateFontSize = (phase: ScalingInputPhase): number => {
diff --git a/packages/instant/src/components/standard_sliding_panel.tsx b/packages/instant/src/components/standard_sliding_panel.tsx
index 9409d9664..f587ff79a 100644
--- a/packages/instant/src/components/standard_sliding_panel.tsx
+++ b/packages/instant/src/components/standard_sliding_panel.tsx
@@ -22,7 +22,7 @@ export class StandardSlidingPanel extends React.Component<StandardSlidingPanelPr
switch (content) {
case StandardSlidingPanelContent.InstallWallet:
return <InstallWalletPanelContent />;
- default:
+ case StandardSlidingPanelContent.None:
return null;
}
};