Refactor code and update dependencies

Rearranged imports for better organization and readability across multiple files. Updated the `react-i18next` dependency to version 15.0.1 in various `package.json` files. Adjusted formatting in multiple TypeScript files to ensure code style consistency.
This commit is contained in:
gbuomprisco
2024-08-11 12:04:49 +02:00
parent e3503d8d47
commit babdecb78f
34 changed files with 2460 additions and 2385 deletions

View File

@@ -1,5 +1,5 @@
import { Avatar, AvatarFallback, AvatarImage } from '../shadcn/avatar';
import {cn} from "../utils";
import { cn } from '../utils';
type SessionProps = {
displayName: string | null;
@@ -15,7 +15,10 @@ type ProfileAvatarProps = (SessionProps | TextProps) & {
};
export function ProfileAvatar(props: ProfileAvatarProps) {
const avatarClassName = cn(props.className, 'mx-auto w-9 h-9 group-focus:ring-2');
const avatarClassName = cn(
props.className,
'mx-auto w-9 h-9 group-focus:ring-2',
);
if ('text' in props) {
return (