0 ? { width } : undefined
- }
- >
- {typeof label === 'string' && label.length > 0 && (
-
- )}
-
-
- {(type === 'password' || type === 'passwordConfirm') && (
-
+ return (
+
0 ? { width } : undefined
+ }
+ >
+ {typeof label === 'string' && label.length > 0 && (
+
)}
-
- {errorMessage && (
-
{errorMessage}
- )}
- {typeof showDayPicker === 'boolean' && showDayPicker && (
-
- );
-}
+ {errorMessage && (
+
{errorMessage}
+ )}
+
+ );
+ }
+);
+
+InputField.displayName = 'InputField';
export default InputField;
diff --git a/components/SearchInput.tsx b/components/SearchInput.tsx
index 86f7ebf..5406fc4 100644
--- a/components/SearchInput.tsx
+++ b/components/SearchInput.tsx
@@ -36,18 +36,15 @@ function SearchInput({
const currentSize = sizeStyles[size];
- const inputStyles = [
- currentSize.container,
- currentSize.padding,
+ const formStyles = [
+ 'flex',
+ 'items-center',
'rounded-lg',
- 'border-none',
'bg-gray-100',
- 'text-gray-500',
- 'text-16',
- 'placeholder:text-gray-400',
- isFocused
- ? 'outline outline-2 outline-green-100'
- : 'focus:outline-green-100',
+ 'px-[20px]',
+ currentSize.container,
+ currentSize.padding,
+ isFocused ? 'outline outline-2 outline-green-100' : '',
].join(' ');
function handleInputChange(e: React.ChangeEvent
) {
@@ -62,21 +59,26 @@ function SearchInput({
return (
);
}
diff --git a/pages/index.tsx b/pages/index.tsx
index 448c1dc..d81ed97 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -62,7 +62,7 @@ export default function LandingPage() {
size="large"
className="mb-[54px] font-['Pretendard'] mo:mb-[44px] mo:text-20b"
>
- {isAuthenticated && profile ? '위키 구경하기' : '위키 만들기'}
+ {isAuthenticated && profile ? '내 위키 보러가기' : '위키 만들기'}