From 89b05be5ec7c71dadedfa5af7fce6d9f4bcfc048 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 18 May 2022 11:57:22 -0400 Subject: [PATCH] Tweak "Ask a question" button VisD --- web/components/nav/sidebar.tsx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/web/components/nav/sidebar.tsx b/web/components/nav/sidebar.tsx index 1a8a0ba3..77faac30 100644 --- a/web/components/nav/sidebar.tsx +++ b/web/components/nav/sidebar.tsx @@ -8,6 +8,7 @@ import { HeartIcon, PresentationChartLineIcon, ChatAltIcon, + SparklesIcon, } from '@heroicons/react/outline' import clsx from 'clsx' import _ from 'lodash' @@ -20,6 +21,7 @@ import { ManifoldLogo } from './manifold-logo' import { MenuButton } from './menu' import { getNavigationOptions, ProfileSummary } from './profile-menu' import { useHasCreatedContractToday } from 'web/hooks/use-has-created-contract-today' +import { Row } from '../layout/row' // Create an icon from the url of an image function IconFromUrl(url: string): React.ComponentType<{ className?: string }> { @@ -178,23 +180,24 @@ export default function Sidebar(props: { className?: string }) { /> - {user && deservesDailyFreeMarket ? ( -
- Use your daily free market! 🎉 -
- ) : ( -
- )} - {user && (
-
)} + + {user && deservesDailyFreeMarket && ( + + + Daily free market + + + )} ) }