Skip to content

Commit bf6e784

Browse files
committed
Update Search.js
1 parent 661ec60 commit bf6e784

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

src/components/Search.js

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { useState, useCallback, useRef, useEffect } from 'react'
2-
import { createPortal } from 'react-dom'
3-
import Link from 'next/link'
1+
import { DocSearchModal, useDocSearchKeyboardEvents } from '@docsearch/react'
2+
import { SearchIcon } from '@heroicons/react/outline'
43
import Head from 'next/head'
4+
import Link from 'next/link'
55
import { useRouter } from 'next/router'
6-
import { DocSearchModal, useDocSearchKeyboardEvents } from '@docsearch/react'
6+
import { useCallback, useEffect, useRef, useState } from 'react'
7+
import { createPortal } from 'react-dom'
78

89
const ACTION_KEY_DEFAULT = ['Ctrl ', 'Control']
910
const ACTION_KEY_APPLE = ['⌘', 'Command']
@@ -70,20 +71,7 @@ export function Search() {
7071
onClick={onOpen}
7172
className="group flex w-full items-center space-x-3 rounded-md border-2 border-gray-200 bg-gray-100 py-1.5 px-1.5 font-medium leading-6 text-gray-500 hover:text-gray-600 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 sm:space-x-4 sm:px-4 lg:px-4"
7273
>
73-
<svg
74-
width="24"
75-
height="24"
76-
fill="none"
77-
className="text-blue-400 transition-colors duration-200 group-hover:text-blue-500"
78-
>
79-
<path
80-
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
81-
stroke="currentColor"
82-
strokeWidth="2"
83-
strokeLinecap="round"
84-
strokeLinejoin="round"
85-
/>
86-
</svg>
74+
<SearchIcon className="h-6 w-6 text-blue-400 transition-colors duration-200 group-hover:text-blue-500" />
8775
<span>
8876
<span className="md:hidden lg:hidden">Search</span>
8977
<span className="hidden sm:inline">Quick search for anything</span>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy