From 7c8012d277e06c0468f6e9db409e5ea217e5bb60 Mon Sep 17 00:00:00 2001 From: nico Date: Wed, 25 Mar 2026 15:07:10 +0800 Subject: [PATCH] Fix Lint-1 --- src/components/keamanan-page.tsx | 20 ++--- src/components/pengaturan/akses-dan-tim.tsx | 92 +++++++++------------ src/components/pengaturan/keamanan.tsx | 59 +++++++------ src/components/pengaturan/notifikasi.tsx | 51 ++++++++---- src/components/pengaturan/umum.tsx | 35 ++++---- src/components/sosial-page.tsx | 8 +- src/components/sosial/beasiswa.tsx | 11 ++- src/components/sosial/event-calendar.tsx | 11 ++- src/components/sosial/health-stats.tsx | 13 ++- src/components/sosial/pendidikan.tsx | 10 ++- src/components/sosial/posyandu-schedule.tsx | 11 ++- src/components/sosial/summary-cards.tsx | 28 ++++--- src/components/ui/help-card.tsx | 4 +- src/components/umkm/summary-cards.tsx | 21 +++-- 14 files changed, 209 insertions(+), 165 deletions(-) diff --git a/src/components/keamanan-page.tsx b/src/components/keamanan-page.tsx index 8937a27..6453ae1 100644 --- a/src/components/keamanan-page.tsx +++ b/src/components/keamanan-page.tsx @@ -5,22 +5,18 @@ import { Grid, GridCol, Group, - List, Stack, Text, ThemeIcon, Title, - useMantineColorScheme, + useMantineColorScheme } from "@mantine/core"; import { IconAlertTriangle, IconCamera, IconClock, - IconEye, - IconMapPin, - IconShieldLock, + IconMapPin } from "@tabler/icons-react"; -import { useState } from "react"; const KeamananPage = () => { const { colorScheme } = useMantineColorScheme(); @@ -125,8 +121,6 @@ const KeamananPage = () => { - - {/* Peta Keamanan CCTV */} @@ -149,7 +143,11 @@ const KeamananPage = () => { {kpi.subtitle} - + {kpi.value} @@ -265,10 +263,6 @@ const KeamananPage = () => { style={{ borderColor: dark ? "#141D34" : "white" }} h="100%" > - - Laporan Keamanan Lingkungan - - {securityReports.map((report, index) => ( { return ( - + - - Manajemen Tim - - - + Manajemen Tim + + - Daftar Anggota Teraktif - 12 Anggota + + Daftar Anggota Teraktif + + + 12 Anggota + - - Hak Akses - + Hak Akses - Administrator - 2 Orang + + Administrator + + + 2 Orang + - Editor - 5 Orang + + Editor + + + 5 Orang + - Viewer - 5 Orang + + Viewer + + + 5 Orang + - - Kolaborasi - + Kolaborasi - Izin Export Data + + Izin Export Data + - Require Approval Untuk Perubahan + + Require Approval Untuk Perubahan + diff --git a/src/components/pengaturan/keamanan.tsx b/src/components/pengaturan/keamanan.tsx index 56b25dd..25cb68b 100644 --- a/src/components/pengaturan/keamanan.tsx +++ b/src/components/pengaturan/keamanan.tsx @@ -1,58 +1,57 @@ -import { - Button, - Box, - Group, - Stack, - Switch, - Text, - Title -} from "@mantine/core"; +import { Box, Button, Group, Stack, Switch, Text, Title } from "@mantine/core"; const KeamananSettings = () => { return ( - + - - Autentikasi - + Autentikasi - Two-Factor Authentication + + Two-Factor Authentication + - Biometrik Login + + Biometrik Login + - IP Whitelist + + IP Whitelist + - - Password - - - - + Password + + + - - Audit & Log - + Audit & Log - Log Aktivitas + + Log Aktivitas + - + diff --git a/src/components/pengaturan/notifikasi.tsx b/src/components/pengaturan/notifikasi.tsx index 3b81c30..3f3adfd 100644 --- a/src/components/pengaturan/notifikasi.tsx +++ b/src/components/pengaturan/notifikasi.tsx @@ -20,30 +20,35 @@ const NotifikasiSettings = () => { const { colorScheme } = useMantineColorScheme(); const dark = colorScheme === "dark"; return ( - - + + Metode Notifikasi - Laporan Harian + + Laporan Harian + - Alert Sistem + + Alert Sistem + - Update Keamanan + + Update Keamanan + - Newsletter Bulanan + + Newsletter Bulanan + @@ -54,15 +59,21 @@ const NotifikasiSettings = () => { Preferensi Alert - Treshold Memori + + Treshold Memori + - Treshold CPU + + Treshold CPU + - Treshold Disk + + Treshold Disk + @@ -73,19 +84,27 @@ const NotifikasiSettings = () => { Notifikasi Push - Alert Kritis + + Alert Kritis + - Aktivitas Tim + + Aktivitas Tim + - Komentar & Mention + + Komentar & Mention + - Bunyi Notifikasi + + Bunyi Notifikasi + diff --git a/src/components/pengaturan/umum.tsx b/src/components/pengaturan/umum.tsx index f7482a5..582e045 100644 --- a/src/components/pengaturan/umum.tsx +++ b/src/components/pengaturan/umum.tsx @@ -1,19 +1,9 @@ -import { - Box, - Button, - Group, - Select, - Switch, - Text, - Title, -} from "@mantine/core"; +import { Box, Button, Group, Select, Switch, Text, Title } from "@mantine/core"; import { DateInput } from "@mantine/dates"; const UmumSettings = () => { return ( - + Preferensi Tampilan @@ -39,22 +29,23 @@ const UmumSettings = () => { mb="md" /> - + Dashboard - Refresh Otomatis + + Refresh Otomatis + - Interval Refresh + + Interval Refresh +