@@ -13,7 +13,7 @@ import {
1313} from '@sovryn/ui' ;
1414
1515import { SocialLinks , ConnectWalletButton } from '../../2_molecules' ;
16- import { TransactionStep } from '../../3_organisms' ;
16+ import { TransactionStep , Header } from '../../3_organisms' ;
1717import { useTheme } from '../../../hooks/useTheme' ;
1818import { useWalletConnect } from '../../../hooks/useWalletConnect' ;
1919import { translations , languages } from '../../../locales/i18n' ;
@@ -38,105 +38,111 @@ function App() {
3838 ) ;
3939
4040 return (
41- < div className = "my-2 px-4" >
42- < header >
43- < p className = { styles . test } >
44- Edit < code > src/App.tsx</ code > and save to reload.
45- </ p >
46- < a href = "https://reactjs.org" target = "_blank" rel = "noopener noreferrer" >
47- Learn React
48- </ a >
41+ < >
42+ < Header />
43+ < div className = "my-2 px-4" >
44+ < div >
45+ < p className = { styles . test } >
46+ Edit < code > src/App.tsx</ code > and save to reload.
47+ </ p >
48+ < a
49+ href = "https://reactjs.org"
50+ target = "_blank"
51+ rel = "noopener noreferrer"
52+ >
53+ Learn React
54+ </ a >
4955
50- < Button text = "Open Dialog" onClick = { toggle } />
56+ < Button text = "Open Dialog" onClick = { toggle } />
5157
52- < Dialog isOpen = { isOpen } onClose = { toggle } >
53- < div className = "p-4" > Hello.</ div >
54- </ Dialog >
58+ < Dialog isOpen = { isOpen } onClose = { toggle } >
59+ < div className = "p-4" > Hello.</ div >
60+ </ Dialog >
5561
56- < Dropdown text = { currentLang . toUpperCase ( ) } className = "my-4" >
57- < Menu >
58- { languages . map ( lng => (
59- < MenuItem
60- text = { lng . toUpperCase ( ) }
61- onClick = { changeLanguage ( lng ) }
62- key = { lng }
63- />
64- ) ) }
65- </ Menu >
66- </ Dropdown >
62+ < Dropdown text = { currentLang . toUpperCase ( ) } className = "my-4" >
63+ < Menu >
64+ { languages . map ( lng => (
65+ < MenuItem
66+ text = { lng . toUpperCase ( ) }
67+ onClick = { changeLanguage ( lng ) }
68+ key = { lng }
69+ />
70+ ) ) }
71+ </ Menu >
72+ </ Dropdown >
6773
68- < div className = "flex items-center gap-4" >
69- < div
70- className = "cursor-pointer"
71- onClick = { ( ) => handleThemeChange ( AppTheme . sovryn ) }
72- >
73- Sovryn
74- </ div >
75- < div
76- className = "cursor-pointer"
77- onClick = { ( ) => handleThemeChange ( AppTheme . dark ) }
78- >
79- Dark
80- </ div >
81- < div
82- className = "cursor-pointer"
83- onClick = { ( ) => handleThemeChange ( AppTheme . light ) }
84- >
85- Light
86- </ div >
87- < div
88- className = "cursor-pointer"
89- onClick = { ( ) => handleThemeChange ( AppTheme . coffee ) }
90- >
91- coffee
74+ < div className = "flex items-center gap-4" >
75+ < div
76+ className = "cursor-pointer"
77+ onClick = { ( ) => handleThemeChange ( AppTheme . sovryn ) }
78+ >
79+ Sovryn
80+ </ div >
81+ < div
82+ className = "cursor-pointer"
83+ onClick = { ( ) => handleThemeChange ( AppTheme . dark ) }
84+ >
85+ Dark
86+ </ div >
87+ < div
88+ className = "cursor-pointer"
89+ onClick = { ( ) => handleThemeChange ( AppTheme . light ) }
90+ >
91+ Light
92+ </ div >
93+ < div
94+ className = "cursor-pointer"
95+ onClick = { ( ) => handleThemeChange ( AppTheme . coffee ) }
96+ >
97+ coffee
98+ </ div >
9299 </ div >
100+ < p className = "text-primary" >
101+ Lorem ipsum dolor, sit amet consectetur adipisicing elit. Atque
102+ tempora itaque voluptatum veritatis perferendis temporibus tenetur
103+ quod corrupti rerum voluptatibus? Totam a quas recusandae quasi
104+ molestiae ipsa omnis dolorum aliquam.
105+ </ p >
106+ < p className = "text-primary" >
107+ GTM: { process . env . REACT_APP_GOOGLE_ANALYTICS }
108+ </ p >
93109 </ div >
94- < p className = "text-primary" >
95- Lorem ipsum dolor, sit amet consectetur adipisicing elit. Atque
96- tempora itaque voluptatum veritatis perferendis temporibus tenetur
97- quod corrupti rerum voluptatibus? Totam a quas recusandae quasi
98- molestiae ipsa omnis dolorum aliquam.
99- </ p >
100- < p className = "text-primary" >
101- GTM: { process . env . REACT_APP_GOOGLE_ANALYTICS }
102- </ p >
103- </ header >
104- < main >
105- < TransactionStep
106- step = "1"
107- title = "Approve FISH tokens"
108- subtitle = "Allow Sovryn protocol to use FISH tokens for the trade"
109- txDetails = { {
110- amount : '0.17519949' ,
111- token : 'FISH' ,
112- gasFee : '0.00006191' ,
113- } }
114- status = { StatusType . idle }
115- txID = "0xEDb8897aB6E907bc63CB256f74437D36298507E2"
116- />
117- < br />
118- < br />
119- < br />
120- < div >
121- < ConnectWalletButton
122- onConnect = { connectWallet }
123- onDisconnect = { disconnectWallet }
124- address = { wallets [ 0 ] ?. accounts [ 0 ] ?. address }
125- pending = { pending }
110+ < main >
111+ < TransactionStep
112+ step = "1"
113+ title = "Approve FISH tokens"
114+ subtitle = "Allow Sovryn protocol to use FISH tokens for the trade"
115+ txDetails = { {
116+ amount : '0.17519949' ,
117+ token : 'FISH' ,
118+ gasFee : '0.00006191' ,
119+ } }
120+ status = { StatusType . idle }
121+ txID = "0xEDb8897aB6E907bc63CB256f74437D36298507E2"
126122 />
127- </ div >
128-
129- < br />
130- < br />
123+ < br />
124+ < br />
125+ < br />
126+ < div >
127+ < ConnectWalletButton
128+ onConnect = { connectWallet }
129+ onDisconnect = { disconnectWallet }
130+ address = { wallets [ 0 ] ?. accounts [ 0 ] ?. address }
131+ pending = { pending }
132+ />
133+ </ div >
131134
132- < p > { t ( translations . wallet ) } </ p >
135+ < br />
136+ < br />
133137
134- < br />
135- < div className = "w-32" >
136- < SocialLinks dataAttribute = "socials" />
137- </ div >
138- </ main >
139- </ div >
138+ < p > { t ( translations . wallet ) } </ p >
139+ < br />
140+ < div className = "w-32" >
141+ < SocialLinks dataAttribute = "socials" />
142+ </ div >
143+ </ main >
144+ </ div >
145+ </ >
140146 ) ;
141147}
142148
0 commit comments