eletrotupi / tcc/ commit / 2f22c81

frontend: call useInsight with a single argument

Pedro Lucas Porcellis porcellis@eletrotupi.com · 12 days ago 2f22c81cbb1594f660a5ff704a81f495413baf9b Browse files
Parents 95635d2
Changed files
1
Additions
+2
Deletions
-2
frontend/components/ui/MoodTrendWidget.tsx
1 1
import React from "react";
2 2
import { View, StyleSheet, ActivityIndicator } from "react-native";
3 3
import { Text } from "@/components/ui/Text";
4 4
import { Ionicons } from "@expo/vector-icons";
5 5
import { Card } from "@/components/ui/Cards";
6 6
import { useInsight } from "@/hooks/useInsights.queries";
7 7
import { useThemeColor } from "@/hooks/use-theme-color";
8 -
import { Spacing, Typography, BorderRadius } from "@/constants/theme";
8 +
import { Typography } from "@/constants/theme";
9 9

10 10
export const MoodTrendWidget: React.FC = () => {
11 -
  const { data: insight, isLoading } = useInsight("MOOD_TREND", 0);
11 +
  const { data: insight, isLoading } = useInsight("MOOD_TREND");
12 12

13 13
  const successColor = useThemeColor({}, "success");
14 14
  const errorColor = useThemeColor({}, "danger");
15 15
  const textSecondary = useThemeColor({}, "textSecondary");
16 16

114 114
    ...Typography.labelXs,
115 115
    opacity: 0.5,
116 116
    marginTop: 4,
117 117
  },
118 118
});