1- import { BonsaiHooks } from '@/bonsai/ontology' ;
21import { Link as ReactLink , useNavigate } from 'react-router-dom' ;
32import styled , { css } from 'styled-components' ;
43import tw from 'twin.macro' ;
@@ -15,17 +14,14 @@ import { useAccounts } from '@/hooks/useAccounts';
1514import { useComplianceState } from '@/hooks/useComplianceState' ;
1615import { useEnvConfig } from '@/hooks/useEnvConfig' ;
1716import { useStringGetter } from '@/hooks/useStringGetter' ;
18- import { useTokenConfigs } from '@/hooks/useTokenConfigs' ;
1917
2018import breakpoints from '@/styles/breakpoints' ;
2119import { layoutMixins } from '@/styles/layoutMixins' ;
2220
23- import { AssetIcon } from '@/components/AssetIcon' ;
2421import { Details } from '@/components/Details' ;
2522import { Icon , IconName } from '@/components/Icon' ;
2623import { IconButton , type IconButtonProps } from '@/components/IconButton' ;
2724import { Link } from '@/components/Link' ;
28- import { Output , OutputType } from '@/components/Output' ;
2925import { Panel } from '@/components/Panel' ;
3026import { Toolbar } from '@/components/Toolbar' ;
3127import { FillsTable , FillsTableColumnKey } from '@/views/tables/FillsTable' ;
@@ -63,9 +59,7 @@ const Profile = () => {
6359 const isConnected = onboardingState !== OnboardingState . Disconnected ;
6460
6561 const { sourceAccount, dydxAddress } = useAccounts ( ) ;
66- const { chainTokenImage, chainTokenLabel } = useTokenConfigs ( ) ;
6762 const { disableConnectButton } = useComplianceState ( ) ;
68- const currentWeekTradingReward = BonsaiHooks . useHistoricalTradingRewardsWeekly ( ) . data ;
6963
7064 const { data : ensName } = useEnsName ( {
7165 address :
@@ -187,30 +181,6 @@ const Profile = () => {
187181
188182 < StakingPanel tw = "[grid-area:staking]" />
189183
190- < $RewardsPanel
191- slotHeaderContent = { stringGetter ( { key : STRING_KEYS . TRADING_REWARDS } ) }
192- href = { `/${ chainTokenLabel } ` }
193- hasSeparator
194- >
195- < $Details
196- items = { [
197- {
198- key : 'week-rewards' ,
199- label : stringGetter ( { key : STRING_KEYS . THIS_WEEK } ) ,
200- value : (
201- < Output
202- slotRight = {
203- < AssetIcon logoUrl = { chainTokenImage } symbol = { chainTokenLabel } tw = "ml-[0.5ch]" />
204- }
205- type = { OutputType . Asset }
206- value = { currentWeekTradingReward }
207- />
208- ) ,
209- } ,
210- ] }
211- layout = "grid"
212- />
213- </ $RewardsPanel >
214184 < Panel
215185 slotHeaderContent = { stringGetter ( { key : STRING_KEYS . FEES } ) }
216186 href = { `${ AppRoute . Portfolio } /${ PortfolioRoute . Fees } ` }
@@ -278,7 +248,7 @@ const $MobileProfileLayout = styled.div`
278248 'actions actions'
279249 'settings help'
280250 'staking staking'
281- 'rewards fees'
251+ 'fees fees'
282252 'history history'
283253 'governance governance'
284254 'incentives incentives'
@@ -290,7 +260,7 @@ const $MobileProfileLayout = styled.div`
290260 'actions actions'
291261 'settings help'
292262 'staking staking'
293- 'rewards fees'
263+ 'fees fees'
294264 'history history'
295265 'governance governance'
296266 'incentives incentives'
@@ -373,18 +343,6 @@ const $ActionButton = styled(IconButton)<{ iconName?: IconName }>`
373343
374344const $Details = tw ( Details ) `font-small-book [--details-value-font:--font-medium-book]` ;
375345
376- const $RewardsPanel = styled ( Panel ) `
377- grid-area: rewards;
378- align-self: flex-start;
379- height: 100%;
380- > div {
381- height: 100%;
382- }
383-
384- dl {
385- --details-grid-numColumns: 1;
386- }
387- ` ;
388346const $HistoryPanel = styled ( Panel ) `
389347 grid-area: history;
390348 --panel-content-paddingY: 0;
0 commit comments