Skip to content

Commit 677a949

Browse files
committed
bring back rocket icon
1 parent bdca4d6 commit 677a949

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libs/remix-ui/run-tab/src/lib/components/environment.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export function EnvironmentUI(props: EnvironmentProps) {
1515
const currentProvider = props.providers.providerList.find((exEnv) => exEnv.name === props.selectedEnv)
1616
const bridges = {
1717
'L2 - Optimism': 'https://app.optimism.io/bridge/deposit',
18-
'L2 - Arbitrum One': 'https://bridge.arbitrum.io/'
18+
'L2 - Arbitrum': 'https://bridge.arbitrum.io/'
1919
}
2020

21-
const isL2 = (providerDisplayName: string) => providerDisplayName === 'Optimism Provider' || providerDisplayName === 'Arbitrum One Provider'
21+
const isL2 = (providerDisplayName: string) => providerDisplayName === 'L2 - Optimism' || providerDisplayName === 'L2 - Arbitrum'
2222
return (
2323
<div className="udapp_crow">
2424
<label id="selectExEnv" className="udapp_settingsLabel">
@@ -38,16 +38,16 @@ export function EnvironmentUI(props: EnvironmentProps) {
3838
<div className="udapp_environment">
3939
<Dropdown id="selectExEnvOptions" data-id="settingsSelectEnvOptions" className="udapp_selectExEnvOptions">
4040
<Dropdown.Toggle as={CustomToggle} id="dropdown-custom-components" className="btn btn-light btn-block w-100 d-inline-block border border-dark form-control" icon={null}>
41-
{isL2(currentProvider && currentProvider.displayName) && 'L2 - '}
41+
{isL2(currentProvider && currentProvider.displayName)}
4242
{currentProvider && currentProvider.displayName}
43-
{currentProvider && bridges[currentProvider.name] && (
43+
{currentProvider && bridges[currentProvider.displayName] && (
4444
<CustomTooltip placement={'right'} tooltipClasses="text-nowrap" tooltipId="info-recorder" tooltipText={<FormattedMessage id="udapp.tooltipText3" />}>
4545
<i
4646
style={{ fontSize: 'medium' }}
4747
className={'ml-2 fa fa-rocket-launch'}
4848
aria-hidden="true"
4949
onClick={() => {
50-
window.open(bridges[currentProvider.name], '_blank')
50+
window.open(bridges[currentProvider.displayName], '_blank')
5151
}}
5252
></i>
5353
</CustomTooltip>
@@ -63,7 +63,7 @@ export function EnvironmentUI(props: EnvironmentProps) {
6363
data-id={`dropdown-item-${name}`}
6464
>
6565
<span className="">
66-
{isL2(displayName) && 'L2 - '}
66+
{isL2(displayName)}
6767
{displayName}
6868
</span>
6969
</Dropdown.Item>

0 commit comments

Comments
 (0)