We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df70a13 commit fda703aCopy full SHA for fda703a
platforms/wakatime/view/index.tsx
@@ -14,14 +14,16 @@ export const getAllTimeSinceToday: ViewComponent = (result, config) => {
14
export const getTimeWithRange: ViewComponent = (result, config) => {
15
const subtitle = (config.queryConfig as any).range;
16
const points = result.data.map((day: any) => day.grand_total.total_seconds);
17
- return (
18
- <Line
19
- leftTitle="Wakatime"
20
- leftSubtitle={subtitle}
21
- points={points}
22
- rightTitle={result.cumulative_total.text}
23
- />
24
- );
+
+ const lines = [
+ {
+ leftTitle: "Line",
+ leftSubtitle: subtitle,
+ points,
+ rightTitle: result.cumulative_total.text,
+ },
25
+ ];
26
+ return <Line items={lines} />;
27
};
28
29
export const getMostUsedLanguages: ViewComponent = (result, config) => {
0 commit comments