Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcherry committed Jan 26, 2024
1 parent 9178efd commit 82b12d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
15 changes: 12 additions & 3 deletions web/src/components/logout/Logout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
"use client";
'use client';

import { signOut } from "next-auth/react";
import { signOut } from 'next-auth/react';

export default function Logout() {
return <button type="button" className="px-4 py-2 text-white bg-fc-purple rounded cursor-pointer" onClick={() => signOut()}>Sign out</button>;
return (
<button
type="button"
// eslint-disable-next-line tailwindcss/no-custom-classname,tailwindcss/classnames-order
className="bg-fc-purple cursor-pointer rounded px-4 py-2 text-white"
onClick={() => signOut()}
>
Sign out
</button>
);
}
8 changes: 3 additions & 5 deletions web/src/components/profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ export function Profile({ user }: ProfileProps) {
<div className="flex flex-col p-4">
<div className="flex flex-row place-items-center">
<Avatar user={user} pfpDiameter={72} />
<div className="flex flex-col ml-4">
<span className="font-bold">
{user.display_name}
</span>
<div className="ml-4 flex flex-col">
<span className="font-bold">{user.display_name}</span>
<span className="text-gray-500">@{user.username}</span>
<div className="mt-2">{user.bio}</div>
</div>
<div className="flex-grow" />
<div className="grow" />
<Logout />
</div>
</div>
Expand Down

0 comments on commit 82b12d8

Please sign in to comment.