Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/yellow-dingos-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@stakekit/widget": patch
---

fix: remove divider
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changeset description "fix: remove divider" is too generic. It should be more specific to match the PR title and clarify that this is about the Tron resource divider being conditionally hidden in the dashboard context. Consider updating to something like "fix: hide tron resource divider in dashboard".

Suggested change
fix: remove divider
fix: hide tron resource divider in dashboard

Copilot uses AI. Check for mistakes.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand All @@ -12,6 +13,8 @@ export const ExtraArgsSelection = () => {

const { t } = useTranslation();

const isDashboard = useIsDashboard();

return selectedStake
.chainNullable((ss) => ss.args.enter.args?.tronResource)
.map((tronResources) => {
Expand Down Expand Up @@ -46,9 +49,11 @@ export const ExtraArgsSelection = () => {
isError={isError}
/>

<Box marginTop="3">
<Divider />
</Box>
{!isDashboard && (
<Box marginTop="3">
<Divider />
</Box>
)}
</Box>
);
})
Expand Down
Loading