Skip to content

Conversation

utkarsha-deriv
Copy link
Contributor

Changes:

Please provide a summary of the change.

Screenshots:

Please provide some screenshots of the change.

@vercel
Copy link

vercel bot commented Aug 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Aug 11, 2023 11:29am

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/9675](https://github.com/binary-com/deriv-app/pull/9675)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-utkarsha-deriv-utkarsha-ts-migration-3db53a.binary.sx?qa_server=red.binaryws.com&app_id=24067
    - **Original**: https://deriv-app-git-fork-utkarsha-deriv-utkarsha-ts-migration-3db53a.binary.sx
- **App ID**: `24067`

@github-actions
Copy link
Contributor

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 21
🟧 Accessibility 75
🟢 Best practices 92
🟧 SEO 85
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-utkarsha-deriv-utkarsha-ts-migration-3db53a.binary.sx/

list_item_desktop_open: JSX.Element;
list_item_sent_by_you: JSX.Element;
subtitle: JSX.Element;
title: JSX.Element;
Copy link
Contributor

Choose a reason for hiding this comment

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

is there any reason for writing JSX.Element for all? could this be a string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The file uses component which returns a JSX Element

DeactivateAccount,
LanguageSettings,
} from 'Sections';
} from '../Sections';
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this changed to relative path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was giving errors in console but with relative path issue was resolved.


// Order matters
const initRoutesConfig = ({ is_appstore }) => [
const initRoutesConfig = (is_appstore: boolean): TRouteConfig[] => [
Copy link
Contributor

Choose a reason for hiding this comment

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

will this work correctly at places initRoutesConfig is invoked? here its now a boolean parameter, but i think an object will be passed as arguments to this function. right?

];

let routesConfig;
let routesConfig: undefined | TRouteConfig[];
Copy link
Contributor

Choose a reason for hiding this comment

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

can we write it in reverse?
TRouteConfig[] | undefined 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants