From 98e810f89f7ecb52b36b975cd838728775e53ab0 Mon Sep 17 00:00:00 2001 From: Dustin Do Date: Sun, 22 Sep 2024 03:46:07 +0700 Subject: [PATCH] chore(mobile): fix lint --- apps/mobile/app/(app)/(tabs)/index.tsx | 5 ++--- apps/mobile/components/ui/badge.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/mobile/app/(app)/(tabs)/index.tsx b/apps/mobile/app/(app)/(tabs)/index.tsx index c27c0c21..bee58b3b 100644 --- a/apps/mobile/app/(app)/(tabs)/index.tsx +++ b/apps/mobile/app/(app)/(tabs)/index.tsx @@ -75,9 +75,8 @@ export default function HomeScreen() { } const transactionsGroupByDate = useMemo(() => { - const groupedByDay = groupBy( - transactions, - (transaction) => dayjsExtended(transaction.date).format('YYYY-MM-DD'), + const groupedByDay = groupBy(transactions, (transaction) => + dayjsExtended(transaction.date).format('YYYY-MM-DD'), ) const sectionDict = mapValues(groupedByDay, (transactions, key) => ({ diff --git a/apps/mobile/components/ui/badge.tsx b/apps/mobile/components/ui/badge.tsx index 4f44c361..1b4281c6 100644 --- a/apps/mobile/components/ui/badge.tsx +++ b/apps/mobile/components/ui/badge.tsx @@ -6,16 +6,16 @@ import { type VariantProps, cva } from 'class-variance-authority' import { View } from 'react-native' const badgeVariants = cva( - 'items-center rounded-full border border-border px-2.5 py-0.5 web:inline-flex web:focus:outline-none web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 web:transition-colors', + 'web:inline-flex items-center rounded-full border border-border px-2.5 py-0.5 web:transition-colors web:focus:outline-none web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2', { variants: { variant: { default: - 'border-transparent bg-primary active:opacity-80 web:hover:opacity-80', + 'border-transparent bg-primary web:hover:opacity-80 active:opacity-80', secondary: - 'border-transparent bg-secondary active:opacity-80 web:hover:opacity-80', + 'border-transparent bg-secondary web:hover:opacity-80 active:opacity-80', destructive: - 'border-transparent bg-destructive active:opacity-80 web:hover:opacity-80', + 'border-transparent bg-destructive web:hover:opacity-80 active:opacity-80', outline: 'text-foreground', }, },