From be7e9453132f2153349f824ca063feea839d5216 Mon Sep 17 00:00:00 2001 From: Jordan Knott Date: Tue, 5 Jan 2021 19:04:47 -0600 Subject: [PATCH] feat(ProjectFinder): auto focus search bar --- frontend/src/App/ProjectFinder.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/App/ProjectFinder.tsx b/frontend/src/App/ProjectFinder.tsx index bca1134..b69b5d7 100644 --- a/frontend/src/App/ProjectFinder.tsx +++ b/frontend/src/App/ProjectFinder.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React, { useState, useRef, useEffect } from 'react'; import styled from 'styled-components/macro'; import { useGetProjectsQuery } from 'shared/generated/graphql'; import { Link } from 'react-router-dom'; @@ -185,6 +185,7 @@ const ProjectFinder = () => { return ( <> setSearch(e.currentTarget.value)}