Skip to content

Commit

Permalink
chore(mobile): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
duongdev committed Sep 21, 2024
1 parent 8fa2032 commit 98e810f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions apps/mobile/app/(app)/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({
Expand Down
8 changes: 4 additions & 4 deletions apps/mobile/components/ui/badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
Expand Down

0 comments on commit 98e810f

Please sign in to comment.