From 0b926a94b47179e2f70e52063e5d646733452257 Mon Sep 17 00:00:00 2001 From: indaviande Date: Wed, 11 Dec 2024 18:44:55 +0100 Subject: [PATCH] lint --- src/components/primitives/Divider.tsx | 25 ++++--------------------- src/components/primitives/Time.tsx | 2 +- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/src/components/primitives/Divider.tsx b/src/components/primitives/Divider.tsx index 17e93f52..1bc20654 100644 --- a/src/components/primitives/Divider.tsx +++ b/src/components/primitives/Divider.tsx @@ -33,7 +33,7 @@ export const dividerStyles = tv( { look: "hype", vertical: true, class: "border-r-2" }, ], }, - { twMerge: false } + { twMerge: false }, ); export type DividerProps = Component< @@ -43,25 +43,8 @@ export type DividerProps = Component< } >; -export default function Divider({ - vertical = false, - horizontal = true, - look, - className, - ...props -}: DividerProps) { - if (horizontal && !vertical) - return ( -
- ); +export default function Divider({ vertical = false, horizontal = true, look, className, ...props }: DividerProps) { + if (horizontal && !vertical) return
; - return ( -
- ); + return
; } diff --git a/src/components/primitives/Time.tsx b/src/components/primitives/Time.tsx index f4b41648..f750150b 100644 --- a/src/components/primitives/Time.tsx +++ b/src/components/primitives/Time.tsx @@ -17,7 +17,7 @@ export default function Time({ timestamp, prefix }: TimeProps) { .replace(/\bsecond(s?)\b/g, "s") .replace(/\bhour(s?)\b/g, "hours") .replace(/\bday(s?)\b/g, "days") - .replace(/\bmonth(s?)\b/g, (match, plural) => (plural ? "months" : "month")); + .replace(/\bmonth(s?)\b/g, (_match, plural) => (plural ? "months" : "month")); }, [timestamp, prefix]); return time;