File tree 1 file changed +11
-12
lines changed
src/routes/_auth/(dashboard)/-components/widget-grid/widgets
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,20 @@ import { useWidgetName } from "@/routes/_auth/(dashboard)/-components/useWidgetN
18
18
19
19
import { WidgetSkeleton , type CommonWidgetProps } from "./_common" ;
20
20
21
+ const chartConfig = {
22
+ previousTotal : {
23
+ label : "Last year" ,
24
+ color : "hsl(var(--chart-1))" ,
25
+ } ,
26
+ total : {
27
+ label : "This year" ,
28
+ color : "hsl(var(--chart-2))" ,
29
+ } ,
30
+ } satisfies ChartConfig ;
31
+
21
32
export default function SalesStatusWidget ( props : CommonWidgetProps ) {
22
33
const { auth, selectedLocationIds, widgetId } = props ;
23
34
24
- const chartConfig = {
25
- previousTotal : {
26
- label : "Last year" ,
27
- color : "hsl(var(--chart-1))" ,
28
- } ,
29
- total : {
30
- label : "This year" ,
31
- color : "hsl(var(--chart-2))" ,
32
- } ,
33
- } satisfies ChartConfig ;
34
-
35
35
const widgetName = useWidgetName ( widgetId ) ;
36
36
37
37
const { t } = useTranslation ( ) ;
@@ -81,7 +81,6 @@ export default function SalesStatusWidget(props: CommonWidgetProps) {
81
81
tickMargin = { 8 }
82
82
/>
83
83
< ChartTooltip
84
- cursor = { false }
85
84
content = { < ChartTooltipContent indicator = "dot" /> }
86
85
formatter = { ( value ) =>
87
86
t ( "intlCurrency" , {
You can’t perform that action at this time.
0 commit comments