Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert networkColors to backendNetworks #6353

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

walmat
Copy link
Contributor

@walmat walmat commented Dec 19, 2024

What changed (plus any additional context for devs)

Converts the ExplainSheet to use the network color from the backendNetworks. I noticed that these actually aren't used anywhere currently, but in case we want to add these explainers again they can be delivered from backend networks.

Also noticed an annoying [TypeError: Cannot read property 'account' of undefined] log that I fixed in the ENS hooks

Screen recordings / screenshots

Screenshot 2024-12-19 at 9 44 39 AM

What to test

nothing really worth testing here.

@@ -14,7 +14,7 @@ const STALE_TIME = 10000;

async function fetchAccountENSDomains({ accountAddress }: { accountAddress: string }) {
const result = await fetchAccountDomains(accountAddress);
if (!result.account) return [];
if (!result?.account) return [];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this fixed the [TypeError: Cannot read property 'account' of undefined]

@walmat walmat marked this pull request as ready for review December 19, 2024 15:13
@brunobar79
Copy link
Member

Launch in simulator or device for 585bc57

@@ -9,6 +9,7 @@ import { IS_TEST } from '@/env';
import { BackendNetwork, BackendNetworkServices, chainHardhat, chainHardhatOptimism, ChainId } from '@/state/backendNetworks/types';
import { GasSpeed } from '@/__swaps__/types/gas';
import { useConnectedToHardhatStore } from '@/state/connectedToHardhat';
import { colors as globalColors } from '@/styles';
Copy link
Contributor

Choose a reason for hiding this comment

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

Small and unimportant, but given there is an export from the @/design-system called globalColors, but you do have to rename colors to something else here, something like themeColors might be less confusing

@walmat walmat merged commit f1d3e7c into develop Dec 20, 2024
11 checks passed
@walmat walmat deleted the @matthew/backend-network-colors branch December 20, 2024 17:44
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.

4 participants