Skip to content

Commit

Permalink
chore: Remove span tag in Network modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ape-fede committed Nov 22, 2022
1 parent f84478a commit 07a2a47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 2 additions & 8 deletions src/__tests__/widgets/menu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,7 @@ it("renders correctly", () => {
/>
</svg>
<span
style="margin: 0px 4px;"
/>
<span
class="css-mfd659"
class="css-18slpqc-NetworkButton"
>
BNB
</span>
Expand Down Expand Up @@ -881,10 +878,7 @@ it("renders correctly", () => {
/>
</svg>
<span
style="margin: 0px 4px;"
/>
<span
class="css-mfd659"
class="css-18slpqc-NetworkButton"
>
BNB
</span>
Expand Down
3 changes: 1 addition & 2 deletions src/widgets/Navbar/NetworkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ const NetworkButton: React.FC<Props> = ({ chainId, switchNetwork, t, supportedCh
}}
>
<Icon />
<span style={{ margin: "0px 4px" }} />
<Text color="text" variant="sm" weight="normal">
<Text color="text" variant="sm" weight="normal" sx={{ marginLeft: "8px" }}>
{NETWORK_LABEL[chainId]}
</Text>
<ArrowDropDownIcon width="10px" ml="8px" />
Expand Down

0 comments on commit 07a2a47

Please sign in to comment.