Introduce prettier
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
import { useContext } from "react";
|
||||
import { Avatar, Card, CardHeader, CardBody, Divider } from "@nextui-org/react";
|
||||
import { TokenContext } from "../TokenProvider";
|
||||
'use client';
|
||||
import { useContext } from 'react';
|
||||
import { Avatar, Card, CardHeader, CardBody, Divider } from '@nextui-org/react';
|
||||
import { TokenContext } from '../TokenProvider';
|
||||
|
||||
type AccountPageMessages = {
|
||||
yourProjects: string;
|
||||
@@ -20,19 +20,10 @@ export default function AccountPage({ messages, locale }: Props) {
|
||||
{context.token && context.token.user && (
|
||||
<Card className="w-[600px] mt-16 mx-3">
|
||||
<CardHeader className="flex gap-6">
|
||||
<Avatar
|
||||
isBordered
|
||||
radius="full"
|
||||
className="w-16 h-16 text-large"
|
||||
src={context.token.user.avatarPath}
|
||||
/>
|
||||
<Avatar isBordered radius="full" className="w-16 h-16 text-large" src={context.token.user.avatarPath} />
|
||||
<div className="flex flex-col">
|
||||
<p className="text-2xl font-bold">
|
||||
{context.token.user.username}
|
||||
</p>
|
||||
<p className="text-lg text-default-500">
|
||||
{context.token.user.email}
|
||||
</p>
|
||||
<p className="text-2xl font-bold">{context.token.user.username}</p>
|
||||
<p className="text-lg text-default-500">{context.token.user.email}</p>
|
||||
</div>
|
||||
</CardHeader>
|
||||
<Divider />
|
||||
|
||||
Reference in New Issue
Block a user