Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes avatars #21

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"licenser.license": "AGPLv3",
"sarif-viewer.connectToGithubCodeScanning": "off",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
}
Binary file removed public/examples/frederic.jpg
Binary file not shown.
Binary file removed public/examples/sebastian.jpg
Binary file not shown.
Binary file removed public/examples/tim.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function Sidebar({ title, children }: Props) {
return (
<>
<header className="flex w-full items-center justify-between px-6 py-7">
<h2 className="w-full text-base font-semibold leading-7 text-white">
<h2 className="w-full text-base font-semibold leading-7 text-black dark:text-white">
{title}
</h2>
</header>
Expand Down
17 changes: 9 additions & 8 deletions src/components/navigation/Sidenav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import { useOrg } from "@/hooks/useOrg";
import { UserGroupIcon } from "@heroicons/react/20/solid";
import { PlusIcon } from "@heroicons/react/24/outline";
import { PlusIcon, UserIcon } from "@heroicons/react/24/solid";
import Image from "next/image";
import Link from "next/link";
import { useRouter } from "next/router";
Expand Down Expand Up @@ -86,13 +86,14 @@ export default function Sidenav() {
</div>
<div className="flex flex-row justify-center">
{user && (
<Link href="/user-settings">
<Image
className="rounded-lg bg-gray-800"
src="/examples/tim.jpg"
alt=""
width={40}
height={40}
<Link
className="rounded-lg bg-gray-200 p-1.5 text-black dark:bg-slate-700"
href="/user-settings"
>
<UserIcon
className="text-gray-600 dark:text-slate-400"
width={25}
height={25}
/>
</Link>
)}
Expand Down
13 changes: 5 additions & 8 deletions src/pages/user-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import { PersonalAccessTokenDTO } from "../types/api/api";
import { createPat } from "../services/patService";
import DateString from "@/components/common/DateString";
import { middleware } from "@/decorators/middleware";
import { UserIcon } from "@heroicons/react/24/solid";

interface Props {
flow?: SettingsFlow;
Expand Down Expand Up @@ -230,15 +231,11 @@ const Settings: FunctionComponent<{
>
<div className="grid grid-cols-3 gap-x-6 gap-y-8 sm:grid-cols-6">
<div className="col-span-full flex items-center gap-x-8">
<Image
src="/examples/tim.jpg"
alt=""
width={96}
height={96}
className="h-24 w-24 flex-none rounded-lg bg-gray-800 object-cover"
/>
<div className="rounded-lg bg-gray-300 p-2 dark:bg-slate-700 dark:text-slate-400">
<UserIcon width={60} height={60} />
</div>
<div>
<Button>Change avatar</Button>
<Button disabled>Change avatar</Button>
<p className="mt-2 text-xs leading-5 text-black/80">
JPG, GIF or PNG. 1MB max.
</p>
Expand Down
Loading