-
- ${format(new Date(firstPoint.value[0]), 'yyyy/MM/dd')}
-
-
- ${secondPoint ? `${secondPoint.value[1]} veBAL` : ''}
- ${firstPoint.value[1]} veBAL
-
+
+
+ ${format(new Date(firstPointValue[0]), 'yyyy/MM/dd')}
+
+
+ ${
+ secondPointValue
+ ? `
+
+
+
+ ${fNum('token', secondPointValue[1])} veBAL
+
+ `
+ : ''
+ }
+
+
+
+ ${fNum('token', firstPointValue[1])} veBAL
+
- `
+
+ `
},
},
xAxis: {
@@ -202,8 +320,9 @@ export function useVebalLocksChart() {
},
series: [
{
+ id: MAIN_SERIES_ID,
name: '',
- type: 'line',
+ type: 'line' as const,
data: chartValues,
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -211,15 +330,29 @@ export function useVebalLocksChart() {
{ offset: 1, color: 'rgba(68, 9, 236, 0)' },
]),
},
+ lineStyle: {
+ color: new echarts.graphic.LinearGradient(0, 0, 1, 1, [
+ { offset: 0, color: '#B3AEF5' },
+ { offset: 0.33, color: '#D7CBE7' },
+ { offset: 0.66, color: '#E5C8C8' },
+ { offset: 1, color: '#EAA879' },
+ ]),
+ width: 5,
+ join: 'round' as const,
+ cap: 'round' as const,
+ },
+ showSymbol: false,
},
futureLockChartData,
],
}
- }, [chartValues, futureLockChartData, theme])
+ }, [chartValues, futureLockChartData, theme, nextTheme])
return {
lockedUntil,
chartData: options,
options,
+ onChartReady,
+ onEvents,
}
}
diff --git a/lib/shared/components/navs/useNav.tsx b/lib/shared/components/navs/useNav.tsx
index a4e87aaa5..8ede56793 100644
--- a/lib/shared/components/navs/useNav.tsx
+++ b/lib/shared/components/navs/useNav.tsx
@@ -31,8 +31,8 @@ export function useNav() {
// To-do: Remove this when veBAL is live
if (isDev || isStaging) {
appLinks.push({
- href: '/vebal',
- label: 'veBAL (wip)',
+ href: '/vebal/manage',
+ label: 'veBAL (manage)',
})
}