From 42aea03415ef6868fdc9bd544b64c6672dcb75bb Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sun, 2 Oct 2022 14:41:44 -0500 Subject: [PATCH] Add search bar to home --- web/pages/home/index.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/web/pages/home/index.tsx b/web/pages/home/index.tsx index 4ad7f97b..f4cd73bc 100644 --- a/web/pages/home/index.tsx +++ b/web/pages/home/index.tsx @@ -40,7 +40,6 @@ import { filterDefined } from 'common/util/array' import { updateUser } from 'web/lib/firebase/users' import { isArray, keyBy } from 'lodash' import { usePrefetch } from 'web/hooks/use-prefetch' -import { Title } from 'web/components/title' import { CPMMBinaryContract } from 'common/contract' import { useContractsByDailyScoreNotBetOn, @@ -91,12 +90,15 @@ export default function Home() { - + - - - <CustomizeButton justIcon /> - </Row> + <input + type="text" + placeholder={'Search'} + className="input input-bordered w-full sm:flex" + onClick={() => Router.push('/search')} + /> + <CustomizeButton justIcon /> <DailyStats user={user} /> </Row> @@ -362,7 +364,7 @@ function DailyStats(props: { } return ( - <Row className={'gap-4'}> + <Row className={'flex-shrink-0 gap-4'}> <Col> <div className="text-gray-500">Daily profit</div> <Row className={clsx(className, 'items-center text-lg')}>