Skip to content

Commit

Permalink
fix: 검색기능 삭제
Browse files Browse the repository at this point in the history
fix: 검색기능 삭제
  • Loading branch information
jeongs9203 committed Nov 30, 2023
2 parents fe59d08 + bc2a068 commit c7cf22d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 51 deletions.
9 changes: 5 additions & 4 deletions src/components/Header/MainNav2Logged.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Link from 'next/link';
import Icon from '../Icon';
import { useSession } from 'next-auth/react';

export interface MainNav2LoggedProps {}
export interface MainNav2LoggedProps { }

/**
*
Expand Down Expand Up @@ -73,18 +73,19 @@ const MainNav2Logged: FC<MainNav2LoggedProps> = () => {
</div>

<div className="flex-[4] hidden lg:flex justify-center">
{showSearchForm ? renderSearchForm() : <Navigation />}
{/* {showSearchForm ? renderSearchForm() : <Navigation />} */}
<Navigation />
</div>

<div className="flex-1 flex items-center justify-end text-slate-700 dark:text-slate-100">
{!showSearchForm && (
{/* {!showSearchForm && (
<button
className="hidden lg:flex w-10 h-10 sm:w-12 sm:h-12 rounded-full text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800 focus:outline-none items-center justify-center"
onClick={() => setShowSearchForm(!showSearchForm)}
>
{renderMagnifyingGlassIcon()}
</button>
)}
)} */}
{
// 로그인 상태 판단
session.status === 'unauthenticated' ? (
Expand Down
2 changes: 1 addition & 1 deletion src/components/ai/Ai.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Ai() {
// console.log('formData: ', formData.get('img'))
try {
setLoading(true);
const res = await fetch(`https://gentledogai.duckdns.org/image_predict`, {
const res = await fetch(`https://gentledog-ai-new.duckdns.org/image_predict`, {
method: 'POST',
body: formData,
});
Expand Down
92 changes: 46 additions & 46 deletions src/shared/Navigation/NavMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,52 +120,52 @@ const NavMobile: React.FC<NavMobileProps> = ({
);
};

const renderMagnifyingGlassIcon = () => {
return (
<svg
width={22}
height={22}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M22 22L20 20"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);
};
// const renderMagnifyingGlassIcon = () => {
// return (
// <svg
// width={22}
// height={22}
// viewBox="0 0 24 24"
// fill="none"
// xmlns="http://www.w3.org/2000/svg"
// >
// <path
// d="M11.5 21C16.7467 21 21 16.7467 21 11.5C21 6.25329 16.7467 2 11.5 2C6.25329 2 2 6.25329 2 11.5C2 16.7467 6.25329 21 11.5 21Z"
// stroke="currentColor"
// strokeWidth="1.5"
// strokeLinecap="round"
// strokeLinejoin="round"
// />
// <path
// d="M22 22L20 20"
// stroke="currentColor"
// strokeWidth="1.5"
// strokeLinecap="round"
// strokeLinejoin="round"
// />
// </svg>
// );
// };

const renderSearchForm = () => {
return (
<form
action=""
method="POST"
className="flex-1 text-slate-900 dark:text-slate-200"
>
<div className="bg-slate-50 dark:bg-slate-800 flex items-center space-x-1 py-2 px-4 rounded-xl h-full">
{renderMagnifyingGlassIcon()}
<input
type="search"
placeholder="Type and press enter"
className="border-none bg-transparent focus:outline-none focus:ring-0 w-full text-sm "
/>
</div>
<input type="submit" hidden value="" />
</form>
);
};
// const renderSearchForm = () => {
// return (
// <form
// action=""
// method="POST"
// className="flex-1 text-slate-900 dark:text-slate-200"
// >
// <div className="bg-slate-50 dark:bg-slate-800 flex items-center space-x-1 py-2 px-4 rounded-xl h-full">
// {renderMagnifyingGlassIcon()}
// <input
// type="search"
// placeholder="Type and press enter"
// className="border-none bg-transparent focus:outline-none focus:ring-0 w-full text-sm "
// />
// </div>
// <input type="submit" hidden value="" />
// </form>
// );
// };

const { _toogleDarkMode } = useThemeMode();

Expand Down Expand Up @@ -221,7 +221,7 @@ const NavMobile: React.FC<NavMobileProps> = ({
<ButtonClose onClick={onClickClose} />
</span>

<div className="mt-5">{renderSearchForm()}</div>
{/* <div className="mt-5">{renderSearchForm()}</div> */}
</div>
<ul className="flex flex-col py-6 px-2 space-y-1">
<Disclosure
Expand Down

0 comments on commit c7cf22d

Please sign in to comment.