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

fix: fix network selector bug #12605

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
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
22 changes: 22 additions & 0 deletions app/components/Views/NetworkSelector/NetworkSelector.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,28 @@ const createStyles = (colors: Colors) =>
fontSize: 10,
marginTop: 4,
},
screen: { justifyContent: 'flex-end' },
scrollableDescription: {
maxHeight: Device.getDeviceHeight() * 0.7,
},
sheet: {
backgroundColor: colors.background.default,
borderTopLeftRadius: 20,
borderTopRightRadius: 20,
},
title: {
textAlign: 'center',
marginTop: 8,
marginBottom: 8,
},
notch: {
width: 48,
height: 5,
borderRadius: 4,
backgroundColor: colors.border.default,
marginTop: 8,
alignSelf: 'center',
},
searchContainer: {
marginLeft: 16,
marginRight: 16,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ describe('Network Selector', () => {
it('renders the linea mainnet cell correctly', () => {
(isNetworkUiRedesignEnabled as jest.Mock).mockImplementation(() => true);
const { getByText } = renderComponent(initialState);
const lineaRpcUrl = getByText('https://linea-rpc.publicnode.com');
const lineaRpcUrl = getByText('linea-rpc.publicnode.com');
const lineaCell = getByText('Linea');
expect(lineaCell).toBeTruthy();
expect(lineaRpcUrl).toBeTruthy();
Expand Down Expand Up @@ -572,7 +572,7 @@ describe('Network Selector', () => {
it('renders the mainnet cell correctly', () => {
(isNetworkUiRedesignEnabled as jest.Mock).mockImplementation(() => true);
const { getByText } = renderComponent(initialState);
const mainnetRpcUrl = getByText('https://mainnet-rpc.publicnode.com');
const mainnetRpcUrl = getByText('mainnet-rpc.publicnode.com');
const mainnetCell = getByText('Ethereum Mainnet');
expect(mainnetCell).toBeTruthy();
expect(mainnetRpcUrl).toBeTruthy();
Expand Down
Loading
Loading