Skip to content

Commit

Permalink
Fix dark mode colors for tBTC Explorer
Browse files Browse the repository at this point in the history
- replace the Metric Box background color to `gray.700` in dark mode
- replace the background color of odd row (history rows) to `gray.700` in dark
mode
  • Loading branch information
michalsmiarowski committed Aug 21, 2023
1 parent 0b31232 commit 9ae95cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/tBTC/Explorer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
Th,
Thead,
Tr,
useColorModeValue,
} from "@threshold-network/components"
import { PageComponent } from "../../../types"
import tBTCExplorerBg from "../../../static/images/tBTC-explorer-bg.svg"
Expand Down Expand Up @@ -155,7 +156,7 @@ const HistoryRow: FC<RecentDeposit> = ({ txHash, address, amount, date }) => {
<LinkBox
as={Tr}
key={`latest-mints-${txHash}`}
_odd={{ backgroundColor: "gray.50" }}
_odd={{ backgroundColor: useColorModeValue("gray.50", "gray.700") }}
sx={{ td: { borderBottom: "none" } }}
transform="scale(1)"
>
Expand Down Expand Up @@ -216,7 +217,7 @@ const MetricBox: FC = ({ children }) => {
border="1px solid"
borderColor="gray.100"
p="3.25rem"
bg="white"
bg={useColorModeValue("white", "gray.700")}
textAlign="center"
borderRadius="2"
minWidth="294px"
Expand Down

0 comments on commit 9ae95cd

Please sign in to comment.