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;