Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 6ffccc9

Browse files
valentinewallacetanx
authored andcommitted
Rename NoRouteFound view to PaymentFailed.
1 parent abcadcb commit 6ffccc9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/view/no-route.js renamed to src/view/payment-failed.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ const styles = StyleSheet.create({
2828
},
2929
});
3030

31-
const NoRouteView = ({ channel, payment }) => (
31+
const PaymentFailedView = ({ channel, payment }) => (
3232
<Background color={color.blackDark}>
3333
<MainContent>
3434
<FormStretcher>
3535
<LightningErrorIcon height={115 * 0.8} width={60 * 0.8} />
36-
<H1Text style={styles.h1Txt}>No route found</H1Text>
36+
<H1Text style={styles.h1Txt}>Payment Failed</H1Text>
3737
<CopyText style={styles.copyTxt}>
38-
{"You'll need to manually create a channel"}
38+
{'You may need to manually create a channel.'}
3939
</CopyText>
4040
</FormStretcher>
4141
<PillButton style={styles.createBtn} onPress={() => channel.initCreate()}>
@@ -48,9 +48,9 @@ const NoRouteView = ({ channel, payment }) => (
4848
</Background>
4949
);
5050

51-
NoRouteView.propTypes = {
51+
PaymentFailedView.propTypes = {
5252
channel: PropTypes.object.isRequired,
5353
payment: PropTypes.object.isRequired,
5454
};
5555

56-
export default observer(NoRouteView);
56+
export default observer(PaymentFailedView);

stories/screen-story.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import PayLightningDone from '../src/view/pay-lightning-done';
3838
import PayBitcoin from '../src/view/pay-bitcoin';
3939
import PayBitcoinConfirm from '../src/view/pay-bitcoin-confirm';
4040
import PayBitcoinDone from '../src/view/pay-bitcoin-done';
41-
import NoRoute from '../src/view/no-route';
41+
import PaymentFailed from '../src/view/payment-failed';
4242
import Loader from '../src/view/loader';
4343
import LoaderSyncing from '../src/view/loader-syncing';
4444
import SelectSeed from '../src/view/select-seed';
@@ -149,7 +149,9 @@ storiesOf('Screens', module)
149149
.add('Pay Lightning Done', () => (
150150
<PayLightningDone store={store} payment={payment} nav={nav} />
151151
))
152-
.add('No Route Found', () => <NoRoute channel={channel} payment={payment} />)
152+
.add('Payment Failed', () => (
153+
<PaymentFailed channel={channel} payment={payment} />
154+
))
153155
.add('Pay Bitcoin', () => (
154156
<PayBitcoin store={store} payment={payment} nav={nav} />
155157
))

0 commit comments

Comments
 (0)