diff --git a/.changeset/yellow-dingos-fetch.md b/.changeset/yellow-dingos-fetch.md new file mode 100644 index 00000000..07e99a65 --- /dev/null +++ b/.changeset/yellow-dingos-fetch.md @@ -0,0 +1,5 @@ +--- +"@stakekit/widget": patch +--- + +fix: remove divider diff --git a/packages/widget/src/pages/details/earn-page/components/extra-args-selection/index.tsx b/packages/widget/src/pages/details/earn-page/components/extra-args-selection/index.tsx index e588f897..a72c95d1 100644 --- a/packages/widget/src/pages/details/earn-page/components/extra-args-selection/index.tsx +++ b/packages/widget/src/pages/details/earn-page/components/extra-args-selection/index.tsx @@ -4,6 +4,7 @@ import { Box } from "../../../../../components/atoms/box"; import { Divider } from "../../../../../components/atoms/divider"; import { Dropdown } from "../../../../../components/atoms/dropdown"; import { Text } from "../../../../../components/atoms/typography/text"; +import { useIsDashboard } from "../../../../../pages-dashboard/providers/dashboard-context"; import { useEarnPageContext } from "../../state/earn-page-context"; export const ExtraArgsSelection = () => { @@ -12,6 +13,8 @@ export const ExtraArgsSelection = () => { const { t } = useTranslation(); + const isDashboard = useIsDashboard(); + return selectedStake .chainNullable((ss) => ss.args.enter.args?.tronResource) .map((tronResources) => { @@ -46,9 +49,11 @@ export const ExtraArgsSelection = () => { isError={isError} /> - - - + {!isDashboard && ( + + + + )} ); })