forked from aave/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbridge.page.tsx
More file actions
29 lines (26 loc) · 839 Bytes
/
bridge.page.tsx
File metadata and controls
29 lines (26 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import * as React from 'react';
import { useEffect } from 'react';
import { ContentContainer } from 'src/components/ContentContainer';
import { MainLayout } from 'src/layouts/MainLayout';
import { BridgeTopPanel } from 'src/modules/bridge/BridgeTopPanel';
import { BridgeWrapper } from 'src/modules/bridge/BridgeWrapper';
import { useRootStore } from 'src/store/root';
export default function Bridge() {
const trackEvent = useRootStore((store) => store.trackEvent);
useEffect(() => {
trackEvent('Page Viewed', {
'Page Name': 'Bridge Transactions',
});
}, [trackEvent]);
return (
<>
<BridgeTopPanel />
<ContentContainer>
<BridgeWrapper />
</ContentContainer>
</>
);
}
Bridge.getLayout = function getLayout(page: React.ReactElement) {
return <MainLayout>{page}</MainLayout>;
};