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:
parent
8d852323ad
commit
8b331c0a63
@ -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}>
|
||||
|
Loading…
Reference in New Issue
Block a user