diff --git a/web/components/avatar.tsx b/web/components/avatar.tsx
index 318c5498..706b61f3 100644
--- a/web/components/avatar.tsx
+++ b/web/components/avatar.tsx
@@ -8,10 +8,8 @@ export function Avatar(props: {
noLink?: boolean
size?: number | 'xs' | 'sm'
className?: string
- containerClassName?: string
}) {
- const { username, avatarUrl, noLink, size, className, containerClassName } =
- props
+ const { username, avatarUrl, noLink, size, className } = props
const s = size == 'xs' ? 6 : size === 'sm' ? 8 : size || 10
const onClick =
@@ -21,32 +19,28 @@ export function Avatar(props: {
e.stopPropagation()
Router.push(`/${username}`)
}
- return (
-
- {avatarUrl ? (
-

- ) : (
- // TODO: After 2022-03-01, can just assume that all contracts have an avatarUrl
-
+ src={avatarUrl}
+ onClick={onClick}
+ alt={username}
+ />
+ ) : (
+
+ aria-hidden="true"
+ />
)
}
diff --git a/web/components/feed/feed-items.tsx b/web/components/feed/feed-items.tsx
index cb089dd7..37633643 100644
--- a/web/components/feed/feed-items.tsx
+++ b/web/components/feed/feed-items.tsx
@@ -262,9 +262,7 @@ export function CommentInput(props: {
return (
<>
-
+
{mostRecentCommentableBet && (
@@ -413,32 +411,27 @@ export function FeedBet(props: {
return (
<>
-
- {isSelf ? (
-
- ) : bettor ? (
-
- ) : (
-
-
-
-
+ {isSelf ? (
+
+ ) : bettor ? (
+
+ ) : (
+
+
+ )}
diff --git a/web/components/nav/nav-bar.tsx b/web/components/nav/nav-bar.tsx
index 8f7d7424..f92f6630 100644
--- a/web/components/nav/nav-bar.tsx
+++ b/web/components/nav/nav-bar.tsx
@@ -60,7 +60,7 @@ export function BottomNavBar() {
) : user ? (
<>