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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user