File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @stakekit/widget " : patch
3+ ---
4+
5+ fix: remove divider
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { Box } from "../../../../../components/atoms/box";
44import { Divider } from "../../../../../components/atoms/divider" ;
55import { Dropdown } from "../../../../../components/atoms/dropdown" ;
66import { Text } from "../../../../../components/atoms/typography/text" ;
7+ import { useIsDashboard } from "../../../../../pages-dashboard/providers/dashboard-context" ;
78import { useEarnPageContext } from "../../state/earn-page-context" ;
89
910export const ExtraArgsSelection = ( ) => {
@@ -12,6 +13,8 @@ export const ExtraArgsSelection = () => {
1213
1314 const { t } = useTranslation ( ) ;
1415
16+ const isDashboard = useIsDashboard ( ) ;
17+
1518 return selectedStake
1619 . chainNullable ( ( ss ) => ss . args . enter . args ?. tronResource )
1720 . map ( ( tronResources ) => {
@@ -46,9 +49,11 @@ export const ExtraArgsSelection = () => {
4649 isError = { isError }
4750 />
4851
49- < Box marginTop = "3" >
50- < Divider />
51- </ Box >
52+ { ! isDashboard && (
53+ < Box marginTop = "3" >
54+ < Divider />
55+ </ Box >
56+ ) }
5257 </ Box >
5358 ) ;
5459 } )
You can’t perform that action at this time.
0 commit comments