From 1422749aaf1dcf62d3fbb275558cb6be8d473fa8 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 18 May 2022 09:24:16 -0400 Subject: [PATCH] Add an alert for current users --- web/components/user-page.tsx | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx index 83391a41..fe8ac116 100644 --- a/web/components/user-page.tsx +++ b/web/components/user-page.tsx @@ -227,7 +227,15 @@ export function UserPage(props: { }, { title: 'Bets', - content: , + content: ( +
+ + {isCurrentUser && } +
+ ), tabIcon: (
{usersBets.length}
), @@ -254,3 +262,27 @@ export function defaultBannerUrl(userId: string) { ] return defaultBanner[genHash(userId)() % defaultBanner.length] } + +import { ExclamationIcon } from '@heroicons/react/solid' + +function AlertBox(props: { title: string; text: string }) { + const { title, text } = props + return ( +
+
+
+
+
+

{title}

+
+ +
+
+
+
+ ) +}