Skip to content

Commit

Permalink
馃拕 : Fix Explorer Button in NFT viewer (#6700)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcayuelas-ledger committed Apr 18, 2024
1 parent 10df676 commit ac986be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-pens-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Fix color of ExplorerButton in NftViewer
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback, memo } from "react";
import styled, { useTheme } from "styled-components";
import styled from "styled-components";
import { useHistory } from "react-router-dom";
import Box from "~/renderer/components/Box";
import Button from "~/renderer/components/Button";
Expand All @@ -8,7 +8,7 @@ import IconExternal from "~/renderer/icons/ExternalLink";
import useNftLinks from "~/renderer/hooks/useNftLinks";
import { setDrawer } from "~/renderer/drawers/Provider";
import { Account, ProtoNFT, NFTMetadata } from "@ledgerhq/types-live";
import { IconsLegacy } from "@ledgerhq/react-ui";
import { Icons } from "@ledgerhq/react-ui";

const Separator = styled.div`
background-color: ${p => p.theme.colors.palette.divider};
Expand Down Expand Up @@ -62,7 +62,6 @@ type ExternalViewerButtonProps = {
};
const ExternalViewerButton = ({ nft, account, metadata }: ExternalViewerButtonProps) => {
const history = useHistory();
const theme = useTheme();
const onHideCollection = useCallback(() => {
setDrawer();
history.replace(`/account/${account.id}/`);
Expand All @@ -80,7 +79,7 @@ const ExternalViewerButton = ({ nft, account, metadata }: ExternalViewerButtonPr
height: 40,
}}
>
<IconsLegacy.OthersMedium size={14} color={theme.colors.palette.text.shade50} />
<Icons.MoreHorizontal size="S" />
</Button>
</Box>
)}
Expand Down

0 comments on commit ac986be

Please sign in to comment.