Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 61a0b83

Browse files
authored
(LL-MKT): remove 1h graph range and mini graph color while we sort out the data (#4712)
1 parent 5c817b4 commit 61a0b83

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/renderer/screens/market/MarketCoinScreen/MarketCoinChart.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,13 @@ function MarkeCoinChartComponent({
150150
</Flex>
151151
</Flex>
152152
<Bar onTabChange={setRange} initialActiveIndex={activeRangeIndex}>
153-
{ranges.map(key => (
154-
<Text color="inherit" variant="small" key={key}>
155-
{t(`market.range.${key}`)}
156-
</Text>
157-
))}
153+
{ranges
154+
.filter(k => k !== "1h")
155+
.map(key => (
156+
<Text color="inherit" variant="small" key={key}>
157+
{t(`market.range.${key}`)}
158+
</Text>
159+
))}
158160
</Bar>
159161
</Flex>
160162
<SwitchTransition>

src/renderer/screens/market/MarketRowItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function MarketRowItem({
6969

7070
const history = useHistory();
7171
const { colors } = useTheme();
72-
const graphColor = currency?.priceChangePercentage < 0 ? colors.error.c60 : colors.success.c60;
72+
const graphColor = colors.neutral.c80;
7373
const allAccounts = useSelector(accountsSelector);
7474

7575
const onCurrencyClick = useCallback(() => {

src/renderer/screens/market/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export default function Market() {
9191
}, [liveCompatible, refresh]);
9292

9393
const timeRanges = useMemo(
94-
() => Object.keys(rangeDataTable).map(value => ({ value, label: t(`market.range.${value}`) })),
94+
() =>
95+
Object.keys(rangeDataTable)
96+
.filter(k => k !== "1h")
97+
.map(value => ({ value, label: t(`market.range.${value}`) })),
9598
[t],
9699
);
97100

0 commit comments

Comments
 (0)