-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Picker network updates #21301
Picker network updates #21301
Changes from 1 commit
36e19cd
c2abed2
440bb6e
dbbf64e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ describe('Stores custom RPC history', function () { | |
'.networks-tab__add-network-form-footer .btn-primary', | ||
); | ||
|
||
await driver.findElement({ text: networkName, tag: 'p' }); | ||
await driver.findElement({ text: networkName, tag: 'span' }); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed the wrapping html element of the text from a |
||
}, | ||
); | ||
}); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,15 @@ import { | |
AlignItems, | ||
Color, | ||
Display, | ||
FlexDirection, | ||
FontWeight, | ||
TextAlign, | ||
TextVariant, | ||
} from '../../../helpers/constants/design-system'; | ||
import { IMPORT_TOKEN_ROUTE } from '../../../helpers/constants/routes'; | ||
import { getCurrentNetwork, getUseTokenDetection } from '../../../selectors'; | ||
import { setFirstTimeUsedNetwork } from '../../../store/actions'; | ||
import { PickerNetwork, Text } from '../../component-library'; | ||
import Box from '../box'; | ||
import { PickerNetwork, Text, Box } from '../../component-library'; | ||
import Button from '../button'; | ||
import Popover from '../popover'; | ||
Comment on lines
21
to
22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will replace these in another PR |
||
|
||
|
@@ -78,7 +78,11 @@ export default function NewNetworkInfo() { | |
</Button> | ||
} | ||
> | ||
<Box data-testid="new-network-info__wrapper"> | ||
<Box | ||
data-testid="new-network-info__wrapper" | ||
display={Display.Flex} | ||
flexDirection={FlexDirection.Column} | ||
> | ||
<Text | ||
variant={TextVariant.headingSm} | ||
as="h4" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
import NewNetworkInfo from '.'; | ||
|
||
export default { | ||
title: 'Components/UI/NewNetworkInfo', | ||
}; | ||
|
||
export const DefaultStory = () => <NewNetworkInfo />; | ||
|
||
DefaultStory.storyName = 'Default'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the wrapping html element of the text from a
p
tospan
tag in thePickerNetwork