Ayo Commit

This commit is contained in:
Randa Firman Putra
2025-07-15 21:15:45 +07:00
parent 2f3ea8c9d4
commit 01f773dfb0
12 changed files with 82 additions and 82 deletions

View File

@@ -16,7 +16,7 @@ interface MahasiswaStatistik {
}
export default function StatistikMahasiswaChart() {
const { theme, systemTheme } = useTheme();
const { theme } = useTheme();
const [statistikData, setStatistikData] = useState<MahasiswaStatistik[]>([]);
const [loading, setLoading] = useState(true);
const [error, setError] = useState<string | null>(null);
@@ -175,7 +175,7 @@ export default function StatistikMahasiswaChart() {
// Update theme when it changes
useEffect(() => {
const currentTheme = theme === 'system' ? systemTheme : theme;
const currentTheme = theme;
const textColor = currentTheme === 'dark' ? '#fff' : '#000';
const tooltipTheme = currentTheme === 'dark' ? 'dark' : 'light';
@@ -240,7 +240,7 @@ export default function StatistikMahasiswaChart() {
theme: tooltipTheme
}
}));
}, [theme, systemTheme]);
}, [theme]);
// Update categories when data changes
useEffect(() => {