Skip to content

Commit a6b0259

Browse files
committed
ui: update nav and page titles
1 parent 9a89b2b commit a6b0259

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

app/src/__tests__/Routes.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('Routes Component', () => {
2727
it('should display the History page', async () => {
2828
const { findByText, store } = await render();
2929
store.uiStore.goToHistory();
30-
expect(await findByText('Loop History')).toBeInTheDocument();
30+
expect(await findByText('History')).toBeInTheDocument();
3131
expect(store.router.location.pathname).toBe('/history');
3232
});
3333

app/src/__tests__/components/history/HistoryPage.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('HistoryPage', () => {
1818

1919
it('should display the title', () => {
2020
const { getByText } = render();
21-
expect(getByText('Loop History')).toBeInTheDocument();
21+
expect(getByText('History')).toBeInTheDocument();
2222
});
2323

2424
it('should display the export icon', () => {

app/src/__tests__/components/layout/Layout.spec.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ describe('Layout component', () => {
3939
fireEvent.click(getByText('History'));
4040
expect(store.router.location.pathname).toBe('/history');
4141
expect(getByText('History').parentElement).toHaveClass('active');
42-
fireEvent.click(getByText('Lightning Loop'));
42+
fireEvent.click(getByText('Lightning Terminal'));
4343
expect(store.router.location.pathname).toBe('/loop');
44-
expect(getByText('Lightning Loop').parentElement).toHaveClass('active');
44+
expect(getByText('Lightning Terminal').parentElement).toHaveClass('active');
4545
});
4646

4747
it('should navigate to the Settings page', () => {
@@ -50,8 +50,8 @@ describe('Layout component', () => {
5050
fireEvent.click(getByText('Settings'));
5151
expect(store.router.location.pathname).toBe('/settings');
5252
expect(getByText('Settings').parentElement).toHaveClass('active');
53-
fireEvent.click(getByText('Lightning Loop'));
53+
fireEvent.click(getByText('Lightning Terminal'));
5454
expect(store.router.location.pathname).toBe('/loop');
55-
expect(getByText('Lightning Loop').parentElement).toHaveClass('active');
55+
expect(getByText('Lightning Terminal').parentElement).toHaveClass('active');
5656
});
5757
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"cmps.common.PageHeader.exportTip": "Download CSV",
1515
"cmps.common.PageHeader.helpTip": "Take a Tour",
1616
"cmps.history.HistoryPage.backText": "Lightning Loop",
17-
"cmps.history.HistoryPage.pageTitle": "Loop History",
17+
"cmps.history.HistoryPage.pageTitle": "History",
1818
"cmps.history.HistoryRowHeader.status": "Status",
1919
"cmps.history.HistoryRowHeader.amount": "Amount",
2020
"cmps.history.HistoryRowHeader.type": "Type",
@@ -59,7 +59,7 @@
5959
"cmps.loop.swap.SwapReviewStep.total": "Total",
6060
"cmps.loop.swap.SwapWizard.backTip": "Back to Previous",
6161
"cmps.layout.NavMenu.menu": "Menu",
62-
"cmps.layout.NavMenu.loop": "Lightning Loop",
62+
"cmps.layout.NavMenu.loop": "Lightning Terminal",
6363
"cmps.layout.NavMenu.history": "History",
6464
"cmps.layout.NavMenu.settings": "Settings",
6565
"cmps.NodeStatus.title": "Node Status",

0 commit comments

Comments
 (0)