1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Fix/issue 1151 pool chart fill color (#1193)

* added colours for dark and light mode and refetch on appearance change

* keep same border colour
This commit is contained in:
Norbi 2022-03-16 17:35:31 +02:00 committed by GitHub
parent 8d852323ad
commit 8b331c0a63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,11 +85,18 @@ export default function Graph({
const newGraphData = {
labels: timestamps,
datasets: [{ ...lineStyle, data, borderColor: `#8b98a9` }]
datasets: [
{
...lineStyle,
data,
borderColor: `#8b98a9`,
backgroundColor: darkMode.value ? '#201f1f' : '#f7f7f7'
}
]
}
setGraphData(newGraphData)
LoggerInstance.log('[pool graph] New graph data created:', newGraphData)
}, [poolSnapshots, graphType, currency, prices, locale])
}, [poolSnapshots, graphType, currency, prices, locale, darkMode.value])
return (
<div className={styles.graphWrap}>