Skip to content

added soloana on UI for testing - #12

Open
jasspreetbawa13 wants to merge 1 commit into
mainfrom
feat/solana-earn-support
Open

jasspreetbawa13 wants to merge 1 commit into
mainfrom
feat/solana-earn-support

Conversation

@jasspreetbawa13

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
epoch-widget Error Error Sep 17, 2026 11:25am UTC

@github-actions

Copy link
Copy Markdown

React Doctor found 8 new issues in 8 files · 8 warnings · score 86 / 100 (Great) · 6 fixed · vs main

8 warnings

demo/src/pay/useDemoSolanaAdapter.ts

  • ⚠️ L112 fetch Response consumed without status check no-fetch-response-used-without-status-check

src/components/EarnFlowPanel.tsx

  • ⚠️ L48 React function has high control-flow complexity no-high-complexity-react-function

src/components/PaySwapIntentWidget.tsx

  • ⚠️ L35 React function has high control-flow complexity no-high-complexity-react-function

src/components/earn/EarnMainView.tsx

  • ⚠️ L19 React function has high control-flow complexity no-high-complexity-react-function

src/components/pay/PaySwapMainView.tsx

  • ⚠️ L19 React function has high control-flow complexity no-high-complexity-react-function

src/earn/use-earn-engine.ts

  • ⚠️ L76 React function has high control-flow complexity no-high-complexity-react-function

src/earn/use-earn-quote-target.ts

  • ⚠️ L65 React function has high control-flow complexity no-high-complexity-react-function

src/pay/use-pay-swap-engine.ts

  • ⚠️ L117 React function has high control-flow complexity no-high-complexity-react-function

Reviewed by React Doctor for commit 507c101. See inline comments for fixes.

}

const controller = new AbortController();
void fetch(rpcUrl, {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

React Doctor · react-doctor/no-fetch-response-used-without-status-check (warning)

fetch() resolves (does not reject) on HTTP 4xx/5xx, so this unchecked body read may treat an HTTP error payload like a successful response. Check response.ok/response.status, or deliberately handle the API's error payload, before reading the body.

Fix → Check response.ok (or response.status) before consuming a fetch Response with .json()/.text()/.blob(). fetch resolves on HTTP 4xx/5xx, so an unchecked response parses the error body as success or crashes on an always-truthy guard.

Docs

onConnectSolana?: () => void;
}

export function EarnFlowPanel({

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

React Doctor · react-doctor/no-high-complexity-react-function (warning)

EarnFlowPanel has cyclomatic complexity 21, cognitive complexity 33, and maximum nesting depth 4, so its React logic is hard to understand and change. Extract independent branches into components or hooks.

Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.

Docs

@@ -33,7 +33,14 @@ const CTA_TONE_CLASSES: Record<PaySwapCtaTone, string> = {
* and the SDK wiring; this file decides what the user sees.
*/
export function PaySwapIntentWidget(props: PaySwapIntentWidgetProps) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

React Doctor · react-doctor/no-high-complexity-react-function (warning)

PaySwapIntentWidget has cyclomatic complexity 27, cognitive complexity 25, and maximum nesting depth 2, so its React logic is hard to understand and change. Extract independent branches into components or hooks.

Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.

Docs

@@ -100,14 +114,16 @@ export interface PaySwapEngine {
* Takes the widget's props whole so the component isn't a forty-line
* destructure before it can render anything.
*/
export function usePaySwapEngine(props: PaySwapIntentWidgetProps): PaySwapEngine {
export function usePaySwapEngine(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

React Doctor · react-doctor/no-high-complexity-react-function (warning)

usePaySwapEngine has cyclomatic complexity 60, cognitive complexity 38, and maximum nesting depth 2, so its React logic is hard to understand and change. Extract independent branches into components or hooks.

Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.

Docs

This branch had an error being deployed

1 failed deployment
Preview — 507c1016 Deployed Sep 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant