From bd6c215cd3c49c87c3f3850612f79d03a98d75c5 Mon Sep 17 00:00:00 2001 From: mantikoros <95266179+mantikoros@users.noreply.github.com> Date: Thu, 27 Jan 2022 16:50:55 -0600 Subject: [PATCH] use img instead of next js image for avatar, logo (#38) --- web/components/manifold-logo.tsx | 3 +-- web/components/profile-menu.tsx | 5 +---- web/pages/add-funds.tsx | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/web/components/manifold-logo.tsx b/web/components/manifold-logo.tsx index 65fee46b..70e98795 100644 --- a/web/components/manifold-logo.tsx +++ b/web/components/manifold-logo.tsx @@ -1,5 +1,4 @@ import Link from 'next/link' -import Image from 'next/image' import clsx from 'clsx' import { useUser } from '../hooks/use-user' @@ -15,7 +14,7 @@ export function ManifoldLogo(props: { return ( -
- {user.avatarUrl && ( - - )} + {user.avatarUrl && }
{user.name}
diff --git a/web/pages/add-funds.tsx b/web/pages/add-funds.tsx index 0a55c364..820696a9 100644 --- a/web/pages/add-funds.tsx +++ b/web/pages/add-funds.tsx @@ -5,8 +5,6 @@ import { Title } from '../components/title' import { FundsSelector } from '../components/yes-no-selector' import { useUser } from '../hooks/use-user' import { checkoutURL } from '../lib/service/stripe' -import Image from 'next/image' -import { Spacer } from '../components/layout/spacer' import { Page } from '../components/page' export default function AddFundsPage() { @@ -23,7 +21,7 @@ export default function AddFundsPage() { - <Image + <img className="block mt-6" src="/praying-mantis-light.svg" width={200}