Skip to content

Commit d5fadb9

Browse files
committed
fix: pr comments
1 parent e12aae3 commit d5fadb9

File tree

8 files changed

+16
-28
lines changed

8 files changed

+16
-28
lines changed

pages/404.page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ export default function Aave404Page() {
4141
<Typography sx={{ mt: 3, mb: 5, maxWidth: 480 }}>
4242
<Trans>Sorry, we couldn&apos;t find the page you were looking for.</Trans>
4343
<br />
44-
<Trans>We suggest you go back to the Markets.</Trans>
44+
<Trans>We suggest you go back to the home page.</Trans>
4545
</Typography>
46-
<Link href="/markets" passHref>
46+
<Link href="/" passHref>
4747
<Button variant="outlined" color="primary">
48-
<Trans>Back to Markets</Trans>
48+
<Trans>Back home</Trans>
4949
</Button>
5050
</Link>
5151
</Paper>

pages/index.page.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
import { useEffect } from 'react';
2-
31
import { MainLayout } from '../src/layouts/MainLayout';
42
import { useWeb3Context } from '../src/libs/hooks/useWeb3Context';
5-
import { useRootStore } from '../src/store/root';
63
import Dashboard from './dashboard.page';
74
import Markets from './markets.page';
85

96
export default function Home() {
107
const { currentAccount } = useWeb3Context();
11-
const trackEvent = useRootStore((store) => store.trackEvent);
12-
13-
useEffect(() => {
14-
trackEvent('Page Viewed', {
15-
'Page Name': 'Home',
16-
'Wallet Connected': !!currentAccount,
17-
'Connection Status': currentAccount ? 'Connected' : 'Unconnected',
18-
});
19-
}, [trackEvent, currentAccount]);
208

219
// Show dashboard if wallet is connected, otherwise show markets
2210
return currentAccount ? <Dashboard /> : <Markets />;

src/layouts/AppHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function AppHeader() {
215215
>
216216
<Box
217217
component={Link}
218-
href="/markets"
218+
href="/"
219219
aria-label="Go to homepage"
220220
sx={{
221221
lineHeight: 0,

src/locales/el/messages.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/locales/en/messages.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/locales/en/messages.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ msgstr "User did not borrow the specified currency"
119119
msgid "There is not enough liquidity for the target asset to perform the switch. Try lowering the amount."
120120
msgstr "There is not enough liquidity for the target asset to perform the switch. Try lowering the amount."
121121

122+
#: pages/404.page.tsx
123+
msgid "We suggest you go back to the home page."
124+
msgstr "We suggest you go back to the home page."
125+
122126
#: src/modules/history/HistoryFilterMenu.tsx
123127
msgid "Rate change"
124128
msgstr "Rate change"
@@ -1600,10 +1604,6 @@ msgstr "Age"
16001604
msgid "Disable {symbol} as collateral"
16011605
msgstr "Disable {symbol} as collateral"
16021606

1603-
#: pages/404.page.tsx
1604-
msgid "We suggest you go back to the Markets."
1605-
msgstr "We suggest you go back to the Markets."
1606-
16071607
#: src/modules/governance/proposal/VotingResults.tsx
16081608
msgid "Differential"
16091609
msgstr "Differential"
@@ -3267,10 +3267,6 @@ msgstr "The address of the pool addresses provider is invalid"
32673267
msgid "Your voting info"
32683268
msgstr "Your voting info"
32693269

3270-
#: pages/404.page.tsx
3271-
msgid "Back to Markets"
3272-
msgstr "Back to Markets"
3273-
32743270
#: pages/v3-migration.page.tsx
32753271
#: src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsList.tsx
32763272
msgid "Nothing borrowed yet"
@@ -3594,6 +3590,10 @@ msgstr "The app is running in fork mode."
35943590
msgid "There are not enough funds in the{0}reserve to borrow"
35953591
msgstr "There are not enough funds in the{0}reserve to borrow"
35963592

3593+
#: pages/404.page.tsx
3594+
msgid "Back home"
3595+
msgstr "Back home"
3596+
35973597
#: src/components/transactions/FlowCommons/Error.tsx
35983598
#: src/components/transactions/FlowCommons/PermissionView.tsx
35993599
msgid "Close"

src/locales/es/messages.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/locales/fr/messages.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)