Skip to content

Commit 772b99a

Browse files
committed
loop: remove history icon from header
1 parent 1ec9d92 commit 772b99a

File tree

3 files changed

+3
-20
lines changed

3 files changed

+3
-20
lines changed

app/src/components/common/PageHeader.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { observer } from 'mobx-react-lite';
33
import { usePrefixedTranslation } from 'hooks';
44
import { useStore } from 'store';
55
import { styled } from 'components/theme';
6-
import { ArrowLeft, Clock, Download, HeaderThree } from '../base';
6+
import { ArrowLeft, Download, HeaderThree } from '../base';
77
import Tip from './Tip';
88

99
const Styled = {
@@ -44,17 +44,10 @@ interface Props {
4444
title: ReactNode;
4545
onBackClick?: () => void;
4646
backText?: string;
47-
onHistoryClick?: () => void;
4847
onExportClick?: () => void;
4948
}
5049

51-
const PageHeader: React.FC<Props> = ({
52-
title,
53-
onBackClick,
54-
backText,
55-
onHistoryClick,
56-
onExportClick,
57-
}) => {
50+
const PageHeader: React.FC<Props> = ({ title, onBackClick, backText, onExportClick }) => {
5851
const { l } = usePrefixedTranslation('cmps.common.PageHeader');
5952
const { settingsStore } = useStore();
6053

@@ -73,11 +66,6 @@ const PageHeader: React.FC<Props> = ({
7366
<HeaderThree>{title}</HeaderThree>
7467
</Center>
7568
<Right>
76-
{onHistoryClick && (
77-
<Tip placement="bottom" overlay={l('historyTip')}>
78-
<Clock size="large" onClick={onHistoryClick} />
79-
</Tip>
80-
)}
8169
{onExportClick && (
8270
<Tip placement="bottomRight" overlay={l('exportTip')}>
8371
<Download size="large" onClick={onExportClick} />

app/src/components/loop/LoopPage.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ const LoopPage: React.FC = () => {
4141
<SwapWizard />
4242
) : (
4343
<>
44-
<PageHeader
45-
title={title}
46-
onHistoryClick={uiStore.goToHistory}
47-
onExportClick={channelStore.exportChannels}
48-
/>
44+
<PageHeader title={title} onExportClick={channelStore.exportChannels} />
4945
<LoopTiles />
5046
<LoopActions />
5147
</>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"cmps.auth.AuthPage.passLabel": "Enter your password in the field above",
1111
"cmps.auth.AuthPage.submitBtn": "Submit",
1212
"cmps.common.Tile.maximizeTip": "Maximize",
13-
"cmps.common.PageHeader.historyTip": "Loop History",
1413
"cmps.common.PageHeader.exportTip": "Download CSV",
1514
"cmps.history.HistoryPage.backText": "Lightning Loop",
1615
"cmps.history.HistoryPage.pageTitle": "Loop History",

0 commit comments

Comments
 (0)