Skip to content

Commit 156a645

Browse files
committed
ui: update copy
1 parent f811563 commit 156a645

File tree

6 files changed

+11
-16
lines changed

6 files changed

+11
-16
lines changed

app/src/__tests__/components/loop/LoopPage.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ describe('LoopPage component', () => {
160160
expect(getByText('Configuring Loops')).toBeInTheDocument();
161161
expect(store.buildSwapStore.processingTimeout).toBeDefined();
162162
fireEvent.click(getByText('arrow-left.svg'));
163-
expect(getByText('Review the quote')).toBeInTheDocument();
163+
expect(getByText('Review Loop amount and fee')).toBeInTheDocument();
164164
expect(store.buildSwapStore.processingTimeout).toBeUndefined();
165165
});
166166
});

app/src/__tests__/components/loop/SwapWizard.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('SwapWizard component', () => {
8181
it('should display the description labels', () => {
8282
const { getByText } = render();
8383
expect(getByText('Step 2 of 2')).toBeInTheDocument();
84-
expect(getByText('Review the quote')).toBeInTheDocument();
84+
expect(getByText('Review Loop amount and fee')).toBeInTheDocument();
8585
expect(getByText('Loop Out Amount')).toBeInTheDocument();
8686
expect(getByText('Fees')).toBeInTheDocument();
8787
expect(getByText('Total')).toBeInTheDocument();

app/src/components/loop/LoopActions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Styled = {
2020
ActionBar: styled.div`
2121
display: flex;
2222
align-items: center;
23-
width: 595px;
23+
min-width: 595px;
2424
padding: 15px;
2525
background-color: ${props => props.theme.colors.darkBlue};
2626
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.5);

app/src/components/loop/swap/StepSummary.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
32
import { useStore } from 'store';
43
import { HeaderFive, HeaderFour, Small } from 'components/base';
54
import { styled } from 'components/theme';
@@ -11,7 +10,7 @@ const Styled = {
1110
display: flex;
1211
flex-direction: column;
1312
justify-content: space-between;
14-
max-width: 240px;
13+
max-width: 265px;
1514
`,
1615
Description: styled(Small)`
1716
opacity: 0.5;
@@ -24,7 +23,7 @@ const Styled = {
2423
interface Props {
2524
title: string;
2625
heading: string;
27-
description: string;
26+
description?: string;
2827
}
2928

3029
const StepSummary: React.FC<Props> = ({ title, heading, description }) => {
@@ -36,7 +35,7 @@ const StepSummary: React.FC<Props> = ({ title, heading, description }) => {
3635
<div>
3736
<HeaderFour>{title}</HeaderFour>
3837
<HeaderFive>{heading}</HeaderFive>
39-
<Description>{description}</Description>
38+
{description && <Description>{description}</Description>}
4039
</div>
4140
<div>
4241
<SelectedChannels count={buildSwapStore.selectedChanIds.length} />

app/src/components/loop/swap/SwapReviewStep.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ const SwapReviewStep: React.FC = () => {
4747
return (
4848
<Wrapper>
4949
<Summary>
50-
<StepSummary
51-
title={l('title')}
52-
heading={l('heading')}
53-
description={l('description')}
54-
/>
50+
<StepSummary title={l('title')} heading={l('heading')} />
5551
</Summary>
5652
<Invoice>
5753
<div>

app/src/i18n/locales/en-US.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"enums.BalanceMode.send": "Sending",
77
"enums.BalanceMode.routing": "Routing",
88
"cmps.auth.AuthPage.title": "Shushtar",
9-
"cmps.auth.AuthPage.subtitle": "A tool to help you more effectively and efficiently manage inbound and outbound liquidity on your Lightning node",
9+
"cmps.auth.AuthPage.subtitle": "Efficiently manage Lightning node liquidity",
1010
"cmps.auth.AuthPage.passLabel": "Enter your password in the field above",
1111
"cmps.auth.AuthPage.submitBtn": "Submit",
1212
"cmps.common.Tile.maximizeTip": "Maximize",
@@ -32,7 +32,7 @@
3232
"cmps.loop.SelectedChannels.channelsSelected": "channels selected",
3333
"cmps.loop.SelectedChannels.useAnyChannel": "Automatic channel selection",
3434
"cmps.loop.LoopActions.loopMinimumNote": "Minimum Loop amount is {{min}}",
35-
"cmps.loop.LoopActions.loopInNote": "For multi Loop In, all channels must use the same peer.",
35+
"cmps.loop.LoopActions.loopInNote": "Currently, multiple channel Loop In is supported only with a single peer.",
3636
"cmps.loop.LoopPage.pageTitle": "Lightning Loop",
3737
"cmps.loop.LoopHistory.emptyMsg": "After performing swaps, you will see ongoing loops and history here.",
3838
"cmps.loop.LoopTiles.history": "Loop History",
@@ -47,10 +47,10 @@
4747
"cmps.loop.swap.StepButtons.confirm": "Confirm",
4848
"cmps.loop.swap.SwapConfigStep.title": "Step 1 of 2",
4949
"cmps.loop.swap.SwapConfigStep.heading": "{{type}} Amount",
50-
"cmps.loop.swap.SwapConfigStep.description": "Loop helps prevent errors receiving or forwarding payments. Use the slider to choose the amount to swap between on-chain and off-chain.",
50+
"cmps.loop.swap.SwapConfigStep.description": "Loop moves funds in and out of the Lightning Network, simplifying the sending and receiving of payments via Lightning. Use the slider to select the amount to Loop In or Loop Out of the Lightning Network",
5151
"cmps.loop.swap.SwapProcessingStep.loadingMsg": "Configuring Loops",
5252
"cmps.loop.swap.SwapReviewStep.title": "Step 2 of 2",
53-
"cmps.loop.swap.SwapReviewStep.heading": "Review the quote",
53+
"cmps.loop.swap.SwapReviewStep.heading": "Review Loop amount and fee",
5454
"cmps.loop.swap.SwapReviewStep.description": "Confirm the fee for improving your channel liquidity. If you'd like to make adjustments, click the back arrow above.",
5555
"cmps.loop.swap.SwapReviewStep.amount": "{{type}} Amount",
5656
"cmps.loop.swap.SwapReviewStep.fees": "Fees",

0 commit comments

Comments
 (0)